diff --git a/src/entrypoints/groundstation/assets/styles/global.qss b/src/entrypoints/groundstation/assets/styles/global.qss index ef032d1f5afbc8b76facd213059d9aa10e3ee9df..826f8a401ce41d68052b5de98b0c11057a92ddcc 100644 --- a/src/entrypoints/groundstation/assets/styles/global.qss +++ b/src/entrypoints/groundstation/assets/styles/global.qss @@ -1049,3 +1049,28 @@ QSplitter[orientation="2"]::handle { border-top: 2px dashed #606060; max-height: 0px; } + +QListWidget { + show-decoration-selected: 1; + color: #d7d6d6; + border: none; + font-weight: bold; + font-size: 16px; +} + +QListWidget::item { + background-color: #494949; + padding-top: 0; + padding-bottom: 0; + padding-left: 10px; + padding-right: 10px; +} + +QListWidget::item:selected { + color: #d7d6d6; + border-width: 0; + border-top-style: solid; + border-top-width: 5px; + border-top-color: #a8a8a9; + background-color: #606060; +} \ No newline at end of file diff --git a/src/entrypoints/groundstation/assets/styles/white-mode.qss b/src/entrypoints/groundstation/assets/styles/white-mode.qss index e9fe5a59723114bd69d29b884c0b95365748a812..10f5a39f4a6c3598182c5b0e8c70eef3d41d4374 100644 --- a/src/entrypoints/groundstation/assets/styles/white-mode.qss +++ b/src/entrypoints/groundstation/assets/styles/white-mode.qss @@ -1058,3 +1058,29 @@ QSplitter[orientation="2"]::handle { border-top: 2px dashed #606060; max-height: 0px; } + + +QListWidget { + show-decoration-selected: 1; + color: black; + border: none; + font-weight: bold; + font-size: 16px; +} + +QListWidget::item { + background-color: #f2f2f2; + padding-top: 0; + padding-bottom: 0; + padding-left: 10px; + padding-right: 10px; +} + +QListWidget::item:selected { + color: black; + border-width: 0; + border-top-style: solid; + border-top-width: 5px; + border-top-color: #f2f2f2; + background-color: #b3b3b3; +} \ No newline at end of file diff --git a/src/shared/Modules/Tabs/TabsModule.cpp b/src/shared/Modules/Tabs/TabsModule.cpp index 53d3c3c28e5c3e53e19e2eadb57961ba1e67ba12..87bb752683afa3e44dcb6c3fa37b5069eb40bea0 100644 --- a/src/shared/Modules/Tabs/TabsModule.cpp +++ b/src/shared/Modules/Tabs/TabsModule.cpp @@ -215,39 +215,11 @@ void TabsModule::onMenuRenameTabClick() // ---- UI -constexpr const char* componentsStyleSheet = R"x( - QListWidget { - show-decoration-selected: 1; - color: #d7d6d6; - border: none; - font-weight: bold; - font-size: 16px; - } - - QListWidget::item { - background-color: #494949; - padding-top: 0; - padding-bottom: 0; - padding-left: 10px; - padding-right: 10px; - } - - QListWidget::item:selected { - color: #d7d6d6; - border-width: 0; - border-top-style: solid; - border-top-width: 5px; - border-top-color: #a8a8a9; - background-color: #606060; - } -)x"; - void TabsModule::setupUi() { // Top component (top bar) tabNames = new QListWidget; tabNames->setFlow(QListView::Flow::LeftToRight); - tabNames->setStyleSheet(componentsStyleSheet); tabNames->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); tabNames->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents); tabNames->setSelectionMode(QAbstractItemView::SingleSelection); @@ -256,7 +228,6 @@ void TabsModule::setupUi() // Bottom component tabContents = new QStackedWidget; tabContents->setObjectName("TabsStackedWidget"); - tabContents->setStyleSheet(componentsStyleSheet); // Putting all together QBoxLayout* outerLayout = new QBoxLayout(QBoxLayout::TopToBottom, this);