diff --git a/felt/gui/create_map_dialog.py b/felt/gui/create_map_dialog.py index 591f60a..e635941 100644 --- a/felt/gui/create_map_dialog.py +++ b/felt/gui/create_map_dialog.py @@ -202,7 +202,10 @@ def upload_raster_as_styled_toggled(): self.setting_button.setPopupMode(QToolButton.InstantPopup) self.setting_button.setStyleSheet( """QToolButton::menu-indicator { image: none } - QToolButton { border: 1px solid red; border-radius: 2px; } + QToolButton { + background: #f9f9f9; + border: 1px solid #bdbdbd; + border-radius: 2px; } """ ) self.setting_button.setFixedHeight( @@ -229,6 +232,45 @@ def upload_raster_as_styled_toggled(): self.maps_widget = RecentMapsWidget() self.workspace_combo = WorkspacesComboBox() self.workspace_combo.workspace_changed.connect(self._workspace_changed) + self.workspace_combo.setFixedHeight( + int(QFontMetrics(self.workspace_combo.font()).height() * 1.5) + ) + self.workspace_combo.setStyleSheet( + """ + QComboBox{ + background: white; + color: black; + selection-background-color: #fed9e3 !important; + selection-color: black !important; + border: 1px solid #bdbdbd; + border-top-right-radius: 2px; + border-top-left-radius: 2px; + border-bottom-right-radius: 2px; + border-bottom-left-radius: 2px; + } + QComboBox:hover { + background: white; + color: black; + selection-background-color: #fed9e3 !important; + selection-color: black !important; + } + QComboBox:on { + background: white; + color: black; + selection-background-color: #fed9e3 !important; + selection-color: black !important; + } + QComboBox QAbstractItemView, QComboBox QListView { + background: white; + color: black; + selection-background-color: #fed9e3 !important; + selection-color: black !important; + } + QComboBox::drop-down:editable:hover { + background-color: @darkalternativegradient; + } + """ + ) maps_layout = QVBoxLayout() maps_layout.setContentsMargins(0, 0, 0, 0) diff --git a/felt/gui/gui_utils.py b/felt/gui/gui_utils.py index 97b46d0..d38dbea 100644 --- a/felt/gui/gui_utils.py +++ b/felt/gui/gui_utils.py @@ -53,8 +53,8 @@ } QPushButton { - background: solid #3d521e; - color: white; + background: solid #3d521e !important; + color: white !important; } QLineEdit { diff --git a/felt/gui/recent_maps_list_view.py b/felt/gui/recent_maps_list_view.py index a9cdec0..2c53f83 100644 --- a/felt/gui/recent_maps_list_view.py +++ b/felt/gui/recent_maps_list_view.py @@ -342,8 +342,11 @@ def __init__(self, parent: Optional[QWidget] = None): QgsFilterLineEdit{ border-top: 1px solid #bdbdbd; border-right: 1px solid #bdbdbd; border-left: 1px solid #bdbdbd; + border-bottom: none; border-top-right-radius: 2px; border-top-left-radius: 2px; + border-bottom-right-radius: 0px; + border-bottom-left-radius: 0px; }""" def _update_filter_stylesheet(): @@ -360,7 +363,17 @@ def _update_filter_stylesheet(): self._view = RecentMapsListView() self._view.setStyleSheet(""" - QListView { border: 1px solid #bdbdbd; } + QListView { + border: 1px solid #bdbdbd; + border-top-right-radius: 0px; + border-top-left-radius: 0px; + border-bottom-right-radius: 2px; + border-bottom-left-radius: 2px; + background: white! important; + } + QListView::item::selected { + background-color: #fed9e3; + } """) vl.addWidget(self._view, 1) diff --git a/felt/ui/create_map.ui b/felt/ui/create_map.ui index c30bf42..dac5629 100644 --- a/felt/ui/create_map.ui +++ b/felt/ui/create_map.ui @@ -171,7 +171,7 @@ - +