Skip to content

Commit

Permalink
Move triangle drop down to svg graphic
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 23, 2023
1 parent 142c5c3 commit 5f8be33
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
11 changes: 8 additions & 3 deletions felt/gui/create_map_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from qgis.PyQt import uic
from qgis.PyQt.QtCore import (
Qt,
QUrl
QUrl,
QSize
)
from qgis.PyQt.QtGui import (
QDesktopServices,
Expand Down Expand Up @@ -200,14 +201,18 @@ def upload_raster_as_styled_toggled():
self.setting_button.setIcon(GuiUtils.get_icon('setting_icon.svg'))
self.setting_button.setPopupMode(QToolButton.InstantPopup)
self.setting_button.setStyleSheet(
"""QToolButton::menu-indicator { image: none; }"""
"""QToolButton::menu-indicator { image: none }"""
)
self.setting_button.setFixedHeight(
self.button_box.button(QDialogButtonBox.Cancel).height()
)
self.setting_button.setFixedWidth(
self.setting_button.size().height()
int(self.setting_button.size().height() * 1.8)
)
self.setting_button.setIconSize(
QSize(int(self.setting_button.size().width() * 0.6),
int(self.setting_button.size().height()* 0.6)
))
# setting the setting button to a fixed height doesn't always
# guarantee that the height exactly matches the Close/Add buttons.
# So let's play it safe and force them to match always:
Expand Down
19 changes: 11 additions & 8 deletions felt/icons/setting_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5f8be33

Please sign in to comment.