From c4bb689a851b16d9a22f085e7406db9dd4cc76dc Mon Sep 17 00:00:00 2001 From: MisterMaker Date: Tue, 30 Jul 2024 00:31:17 +0200 Subject: [PATCH] Stylesheet fixes part IV - A new hope (to be done for 1.0) (#15586) * Qcolor dialog fixes * Fix for white hoover on tabbar * Changes active color and selected feature color * update same colors in cfg * fix for tab pan in material editor * some fixes mostly theme accent colors fixes. * fixed text edit being cut off https://github.com/FreeCAD/FreeCAD/issues/15603 * extend arrow fix https://github.com/FreeCAD/FreeCAD/issues/15616 * checkboxes links qpushbuttons etc. Fixed https://github.com/FreeCAD/FreeCAD/issues/15610#event-13642470770 and hopefully also https://github.com/FreeCAD/FreeCAD/issues/15136#issuecomment-2254156398 * fixed selection-text color in the preference menu also White is white. * forgot checkbox spacing for light * colors update fix for https://github.com/FreeCAD/FreeCAD/issues/15660#event-13670498420 and https://github.com/FreeCAD/FreeCAD/issues/15620#issuecomment-2251144435 * Delete CMakeSettings.json * get out of here * title a tat higher * change rubberband from white to blue to make it work with white background. * setting the colors. * tree colors --- src/Gui/GLPainter.cpp | 4 +- .../FreeCAD Classic/FreeCAD Classic.cfg | 4 +- .../FreeCAD Dark/FreeCAD Dark.cfg | 8 +- .../FreeCAD Light/FreeCAD Light.cfg | 8 +- .../PreferencePages/DlgSettingsViewColor.ui | 14 +- src/Gui/Stylesheets/FreeCAD Dark.qss | 124 ++++++++++-------- src/Gui/Stylesheets/FreeCAD Light.qss | 41 +++--- src/Gui/Tree.cpp | 4 +- src/Gui/TreeParams.cpp | 4 +- 9 files changed, 121 insertions(+), 90 deletions(-) diff --git a/src/Gui/GLPainter.cpp b/src/Gui/GLPainter.cpp index ed831919734d..28838b7d23cd 100644 --- a/src/Gui/GLPainter.cpp +++ b/src/Gui/GLPainter.cpp @@ -223,8 +223,8 @@ Rubberband::Rubberband() : viewer(nullptr) working = false; stipple = true; - rgb_r = 1.0f; - rgb_g = 1.0f; + rgb_r = 0.27f; + rgb_g = 0.4f; rgb_b = 1.0f; rgb_a = 1.0f; } diff --git a/src/Gui/PreferencePacks/FreeCAD Classic/FreeCAD Classic.cfg b/src/Gui/PreferencePacks/FreeCAD Classic/FreeCAD Classic.cfg index 0ffc0c80985b..c14c75e26fed 100644 --- a/src/Gui/PreferencePacks/FreeCAD Classic/FreeCAD Classic.cfg +++ b/src/Gui/PreferencePacks/FreeCAD Classic/FreeCAD Classic.cfg @@ -125,8 +125,8 @@ - - + + diff --git a/src/Gui/PreferencePacks/FreeCAD Dark/FreeCAD Dark.cfg b/src/Gui/PreferencePacks/FreeCAD Dark/FreeCAD Dark.cfg index cdb06422a81c..9bf93bfa685e 100644 --- a/src/Gui/PreferencePacks/FreeCAD Dark/FreeCAD Dark.cfg +++ b/src/Gui/PreferencePacks/FreeCAD Dark/FreeCAD Dark.cfg @@ -4,6 +4,11 @@ + + + + + @@ -34,6 +39,7 @@ + @@ -44,7 +50,7 @@ - + diff --git a/src/Gui/PreferencePacks/FreeCAD Light/FreeCAD Light.cfg b/src/Gui/PreferencePacks/FreeCAD Light/FreeCAD Light.cfg index 6e354aca0b9c..2a21e1737f6a 100644 --- a/src/Gui/PreferencePacks/FreeCAD Light/FreeCAD Light.cfg +++ b/src/Gui/PreferencePacks/FreeCAD Light/FreeCAD Light.cfg @@ -3,6 +3,11 @@ + + + + + @@ -44,7 +49,7 @@ - + @@ -97,6 +102,7 @@ + diff --git a/src/Gui/PreferencePages/DlgSettingsViewColor.ui b/src/Gui/PreferencePages/DlgSettingsViewColor.ui index 61abe9714f79..a86cdc694fb9 100644 --- a/src/Gui/PreferencePages/DlgSettingsViewColor.ui +++ b/src/Gui/PreferencePages/DlgSettingsViewColor.ui @@ -342,9 +342,9 @@ - 255 - 255 - 0 + 94 + 170 + 35 @@ -373,11 +373,11 @@ Background color for active containers in tree view - + rgb(60, 145, 252) - 230 - 230 - 255 + 60 + 145 + 252 diff --git a/src/Gui/Stylesheets/FreeCAD Dark.qss b/src/Gui/Stylesheets/FreeCAD Dark.qss index faece864ce4b..6545dfc525cb 100644 --- a/src/Gui/Stylesheets/FreeCAD Dark.qss +++ b/src/Gui/Stylesheets/FreeCAD Dark.qss @@ -41,8 +41,9 @@ Resetting everything helps to unify styles across different operating systems border-style: none; border-image: none; outline: 0; - color: White; + color: white; selection-background-color: @ThemeAccentColor1; + selection-color: white; } /* specific reset for elements inside QToolBar */ @@ -88,7 +89,7 @@ Gui--PropertyEditor--PropertyEditor QComboBox { /* fix for column items background when a link is present */ Gui--PropertyEditor--PropertyEditor > QWidget > QFrame:focus { - background-color: @ThemeAccentColor1; /* same as focused background color */ + background-color: @ThemeAccentColor2; /* same as focused background color */ } /* hack to hide weird redundant information inside cells with links and no editable data (but editable via "..." button) */ @@ -125,9 +126,9 @@ This causes much load time. /* background-color: #444444; */ /* border: 0px solid #020202; padding: 0px; - color: White; */ + color: white; */ /* selection-background-color: @ThemeAccentColor1; */ - /* selection-color: White; */ + /* selection-color: white; */ /* } */ QWidget:disabled { @@ -140,6 +141,13 @@ QWidget::item:selected { background-color: @ThemeAccentColor1; } +QColorDialog QWidget { + background-color: #333333; + color: white; + selection-background-color: @ThemeAccentColor1; + selection-color: black; +} + /* Causes issue with colorselector. QWidget::item:hover:!selected { background-color: @ThemeAccentColor1; @@ -242,6 +250,7 @@ QCheckBox { outline: none; border: 1px solid transparent; background-color: transparent; + spacing:8px; } QCheckBox:focus { @@ -318,7 +327,7 @@ QGroupBox { background-color: #3c3c3c; border: 1px solid #444444; border-radius: 2px; - margin-top: 3ex; /* leave space at the top for the title */ + margin-top: 18px; /* leave space at the top for the title */ } QGroupBox::title { @@ -370,7 +379,7 @@ https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qradiobutton --------------------------------------------------------------------------- */ QRadioButton { background-color: transparent; - color: White; + color: white; border: none; spacing: 4px; padding-top: 4px; @@ -388,7 +397,7 @@ QRadioButton:disabled { QRadioButton QWidget { background-color: transparent; - color: White; + color: white; spacing: 0px; padding: 0px; outline: none; @@ -441,7 +450,7 @@ https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qmenubar --------------------------------------------------------------------------- */ QMenuBar { background-color: #252525; - color: White; + color: white; selection-background-color: @ThemeAccentColor1; } @@ -462,7 +471,7 @@ QMenuBar::item:selected { QMenuBar::item:pressed { border: 0px solid #020202; background-color: @ThemeAccentColor1; - color: White; + color: white; } /* QMenu ------------------------------------------------------------------ @@ -472,7 +481,7 @@ https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qmenu --------------------------------------------------------------------------- */ QMenu { border: 1px solid #3c3c3c; - color: White; + color: white; margin: 0px; background-color: #252525; selection-background-color: @ThemeAccentColor1; @@ -496,7 +505,7 @@ QMenu::item { } QMenu::item:selected { - color: White; + color: white; background-color: @ThemeAccentColor1; } @@ -614,13 +623,13 @@ https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcombobox --------------------------------------------------------------------------- */ QAbstractItemView { alternate-background-color: #5b5b5b; - color: White; + color: white; border: 1px solid #020202; border-radius: 2px; } QAbstractItemView QLineEdit { - padding: 2px; + padding: 0 2px; } /* QAbstractScrollArea ---------------------------------------------------- @@ -635,7 +644,7 @@ QAbstractScrollArea { /* fix #159 */ padding: 0px; /* remove min-height to fix #244 */ - color: White; + color: white; } QAbstractScrollArea:disabled { @@ -802,7 +811,7 @@ report view --------------------------------------------------------------------------- */ QTextEdit { background-color: #444444; - color: White; + color: white; border-radius: 2px; border: 0px solid #020202; } @@ -821,7 +830,7 @@ Python --------------------------------------------------------------------------- */ QPlainTextEdit { background-color: #3c3c3c; - color: White; + color: white; border-radius: 1.9px; border: 0px solid #020202; } @@ -832,7 +841,7 @@ QPlainTextEdit:focus { QPlainTextEdit:selected { background: @ThemeAccentColor1; - color: White; + color: white; } /* QSizeGrip -------------------------------------------------------------- @@ -916,19 +925,18 @@ QToolBar::separator:vertical { /*The "show more" button (it can also be stylable with "QToolBarExtension" icon is not working Qproperty works but breaks when you move the toolbar see also */ QToolButton#qt_toolbar_ext_button { -margin: 0px; -padding: 0px; background-repeat: none; background-position: center center; +background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #7c7c7c, stop:1 #898989); +padding: 0px; } QToolButton#qt_toolbar_ext_button:hover { -background-color: @ThemeAccentColor1; +background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #b4b4b4, stop:1 #c0c0c0); } QToolButton#qt_toolbar_ext_button:on { -border-color: #020202; -background-color: @ThemeAccentColor1; +background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #b4b4b4, stop:1 #c0c0c0); } @@ -939,7 +947,7 @@ QAbstractSpinBox, QSpinBox { background-color: #252525; border: 1px solid #020202; - color: White; + color: white; border-radius: 2px; min-height: 1.7em; padding-left: 4px; @@ -1004,7 +1012,7 @@ QAbstractSpinBox:focus { } QAbstractSpinBox:selected { - background: @ThemeAccentColor2; + background: @ThemeAccentColor1; } /* ------------------------------------------------------------------------ */ @@ -1030,7 +1038,7 @@ QLabel:disabled { } QLabel[haslink="true"] { - color: orange; + color: #0080ff; } @@ -1042,7 +1050,7 @@ https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qabstractscrollarea QTextBrowser { background-color: #252525; border: 1px solid #020202; - color: White; + color: white; border-radius: 1.9px; } @@ -1062,8 +1070,9 @@ QTextBrowser:hover, QTextBrowser:!hover, QTextBrowser:selected, QTextBrowser:pre QGraphicsView { background-color: transparent; border: 0px solid @ThemeAccentColor1; - color: White; + color: white; border-radius: 0px; + selection-background-color: @ThemeAccentColor1; } QGraphicsView:disabled { @@ -1095,7 +1104,7 @@ QCalendarWidget:disabled { --------------------------------------------------------------------------- */ QLCDNumber { background-color: #1aff00; - color: White; + color: white; } QLCDNumber:disabled { @@ -1111,7 +1120,7 @@ https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qprogressbar QProgressBar { background-color: #cccccc; border: 1px solid #020202; - color: White; + color: white; border-radius: 1.9px; text-align: center; } @@ -1146,11 +1155,11 @@ https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qpushbutton --------------------------------------------------------------------------- */ QPushButton { background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #333333, stop:1 #252525); - color: White; + color: white; border: 1px solid #020202; /* border-bottom-color: #1e1e1e; simulates shadow under the button */ border-radius: 3px; - padding: 4px 0px; + padding: 4px; min-width: 80px; } @@ -1171,7 +1180,7 @@ QPushButton:checked { } QPushButton:focus { - border: 1px solid @ThemeAccentColor1; + border: 1px solid @ThemeAccentColor2; } @@ -1187,7 +1196,7 @@ QPushButton:checked:selected { QPushButton:hover { background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #444444, stop:1 #333333); - color: White; + color: white; } QPushButton:pressed { @@ -1196,7 +1205,7 @@ QPushButton:pressed { QPushButton:selected { border: 1px solid @ThemeAccentColor1; - color: White; + color: white; } QPushButton::menu-indicator { @@ -1217,7 +1226,7 @@ https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbutton --------------------------------------------------------------------------- */ QToolButton { background-color: transparent; - color: White; + color: white; /* border-radius: 1px; */ padding: 2px; outline: none; @@ -1257,11 +1266,11 @@ QToolButton:checked:pressed { QToolButton:checked:selected { background: @ThemeAccentColor2; - color: White; + color: white; } QToolButton:hover { - color: White; + color: white; border: 1px solid #020202; } @@ -1270,7 +1279,7 @@ QToolButton:pressed { QToolButton:selected { border: 1px solid @ThemeAccentColor1; - color: White; + color: white; } /* QToolButton[popupMode="0"] { */ @@ -1361,7 +1370,7 @@ QToolButton::menu-arrow:hover { QCommandLinkButton { background-color: transparent; border: 1px solid #020202; - color: White; + color: white; border-radius: 1.9px; padding: 0px; margin: 0px; @@ -1409,12 +1418,12 @@ QComboBox QAbstractItemView { QComboBox QAbstractItemView:hover { background-color:#252525; - color: White; + color: white; } QComboBox QAbstractItemView:selected { background: @ThemeAccentColor1; - color: White; + color: white; } QComboBox QAbstractItemView:alternate { @@ -1442,7 +1451,7 @@ QComboBox:focus { } QComboBox:on { - selection-background-color: @ThemeAccentColor2; + selection-background-color: @ThemeAccentColor1; } QComboBox::indicator { @@ -1476,7 +1485,7 @@ QComboBox::item:alternate { /* Color of the selected list item. */ QComboBox::item:selected { border: 1px solid #020202; - background: @ThemeAccentColor2; + background: @ThemeAccentColor1; } QComboBox::drop-down { @@ -1808,7 +1817,7 @@ QLineEdit { border-style: solid; border: 1px solid #020202; border-radius: 2px; - color: White; + color: white; } QLineEdit:disabled { @@ -1818,7 +1827,7 @@ QLineEdit:disabled { QLineEdit:hover { /* border: 1px solid @ThemeAccentColor1; */ - color: White; + color: white; } QLineEdit:focus { @@ -1849,7 +1858,8 @@ QTabWidget::pane { margin: 0px; /* Fixes double border inside pane with pyqt5 */ padding: 0px; - background-color: rgba(27, 27, 27, 0.549); + background-color: rgba(74, 74, 74, 54); + border: 1px solid #202020; } QTabWidget::pane:selected { @@ -2020,7 +2030,7 @@ QTabBar::tab:bottom:selected, QDockWidget QTabBar::tab:bottom:selected { } QTabBar::tab:bottom:!selected:hover, QDockWidget QTabBar::tab:bottom:!selected:hover { - background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #d8d8d8, stop:1 #f0f0f0); + background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #333333, stop:1 #444444); margin-bottom: 0px; } @@ -2315,7 +2325,7 @@ QListView, QTableView, QColumnView { background-color: #252525; /* background of a lot of stuff including spreadsheets.*/ - color: White; + color: white; gridline-color: #020202; border-radius: 0px; selection-background-color: @ThemeAccentColor1; @@ -2339,14 +2349,14 @@ QListView:selected, QTableView:selected, QColumnView:selected { background-color: #333333; - color: White; + color: white; } QTreeView:focus, QListView:focus, QTableView:focus, QColumnView:focus { - /* border: 1px solid #020202; */ + /* background-color: @ThemeAccentColor2; */ } QTreeView::item:pressed, @@ -2360,7 +2370,7 @@ QTreeView::item:selected:active, QListView::item:selected:active, QTableView::item:selected:active, QColumnView::item:selected:active { - background-color: @ThemeAccentColor2; + background-color: @ThemeAccentColor1; } QTreeView::item:selected:!active, @@ -2375,7 +2385,7 @@ QListView::item:!selected:hover, QTableView::item:!selected:hover, QColumnView::item:!selected:hover { outline: 0; - color: White; + color: white; background-color: @ThemeAccentColor1; } @@ -2410,7 +2420,7 @@ QHeaderView:disabled { QHeaderView::section { background-color: qlineargradient(x1:0, y1:0.3, x2:0, y2:1, stop:0 #333333, stop:1 #252525); - color: White; + color: white; border-bottom: 1px solid #020202; border-right: 1px solid #020202; border-top: 1px solid #020202; @@ -2487,7 +2497,7 @@ QToolBox:selected { QToolBox::tab { background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #333333, stop:1 #252525); - color: White; + color: white; border-radius: 4px; border: 1px solid #020202; image: none; @@ -2650,12 +2660,12 @@ QDateEdit QAbstractItemView, QDateTimeEdit QAbstractItemView { --------------------------------------------------------------------------- */ QAbstractView:hover { border: 1px solid @ThemeAccentColor1; - color: White; + color: white; } QAbstractView:selected { background: @ThemeAccentColor1; - color: White; + color: white; } /* PlotWidget ------------------------------------------------------------- @@ -2793,7 +2803,7 @@ QWidget#thumbnailWidget { } QWidget#thumbnailWidget[state="hovered"] { - border: 1px solid @ThemeAccentColor2; + border: 1px solid @ThemeAccentColor1; } QWidget#thumbnailWidget[state="pressed"] { diff --git a/src/Gui/Stylesheets/FreeCAD Light.qss b/src/Gui/Stylesheets/FreeCAD Light.qss index 44e8d995eea1..5bb9fca292de 100644 --- a/src/Gui/Stylesheets/FreeCAD Light.qss +++ b/src/Gui/Stylesheets/FreeCAD Light.qss @@ -43,6 +43,7 @@ Resetting everything helps to unify styles across different operating systems outline: 0; color: black; selection-background-color: @ThemeAccentColor1; + selection-color: black; } /* specific reset for elements inside QToolBar */ @@ -88,7 +89,7 @@ Gui--PropertyEditor--PropertyEditor QComboBox { /* fix for column items background when a link is present */ Gui--PropertyEditor--PropertyEditor > QWidget > QFrame:focus { - background-color: @ThemeAccentColor1; /* same as focused background color */ + background-color: @ThemeAccentColor2; /* same as focused background color */ } /* hack to hide weird redundant information inside cells with links and no editable data (but editable via "..." button) */ @@ -140,6 +141,13 @@ QWidget::item:selected { background-color: @ThemeAccentColor1; } +QColorDialog QWidget { + background-color: #f0f0f0; + color: black; + selection-background-color: @ThemeAccentColor1; + selection-color: white; +} + /* Causes issue with colorselector. QWidget::item:hover:!selected { background-color: @ThemeAccentColor1; @@ -242,6 +250,7 @@ QCheckBox { outline: none; border: 1px solid transparent; background-color: transparent; + spacing:8px; } QCheckBox:focus { @@ -318,7 +327,7 @@ QGroupBox { background-color: #ededed; border: 1px solid #d8d8d8; border-radius: 2px; - margin-top: 3ex; /* leave space at the top for the title */ + margin-top: 18px; /* leave space at the top for the title */ } QGroupBox::title { @@ -620,7 +629,7 @@ QAbstractItemView { } QAbstractItemView QLineEdit { - padding: 2px; + padding: 0 2px; } /* QAbstractScrollArea ---------------------------------------------------- @@ -924,12 +933,11 @@ background-position: center center; } QToolButton#qt_toolbar_ext_button:hover { -background-color: @ThemeAccentColor1; + background-color: transparent; } QToolButton#qt_toolbar_ext_button:on { -border-color: #ababab; -background-color: @ThemeAccentColor1; + background-color: transparent; } @@ -1005,7 +1013,7 @@ QAbstractSpinBox:focus { } QAbstractSpinBox:selected { - background: @ThemeAccentColor2; + background: @ThemeAccentColor1; } /* ------------------------------------------------------------------------ */ @@ -1022,6 +1030,7 @@ QLabel { padding: 2px; margin: 0px; color: black; + spacing:8px; } QLabel:disabled { @@ -1031,7 +1040,7 @@ QLabel:disabled { } QLabel[haslink="true"] { - color: orange; + color: #0050a1; } @@ -1151,7 +1160,7 @@ QPushButton { border: 1px solid #ababab; /* border-bottom-color: #1e1e1e; simulates shadow under the button */ border-radius: 3px; - padding: 4px 0px; + padding: 4px; min-width: 80px; } @@ -1162,7 +1171,6 @@ QPushButton { QPushButton:disabled { background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #e2e2e2, stop:1 #fdfdfd); - color: #adadad; border: 1px solid #ababab; } @@ -1173,7 +1181,7 @@ QPushButton:checked { } QPushButton:focus { - border: 1px solid @ThemeAccentColor1; + border: 1px solid @ThemeAccentColor2; } @@ -1444,7 +1452,7 @@ QComboBox:focus { } QComboBox:on { - selection-background-color: @ThemeAccentColor2; + selection-background-color: @ThemeAccentColor1; } QComboBox::indicator { @@ -1478,7 +1486,7 @@ QComboBox::item:alternate { /* Color of the selected list item. */ QComboBox::item:selected { border: 1px solid #ababab; - background: @ThemeAccentColor2; + background: @ThemeAccentColor1; } QComboBox::drop-down { @@ -1851,7 +1859,8 @@ QTabWidget::pane { margin: 0px; /* Fixes double border inside pane with pyqt5 */ padding: 0px; - background-color: rgba(27, 27, 27, 0.549); + background-color: rgba(227, 227, 227, 84); + border: 1px solid #d8d8d8; } QTabWidget::pane:selected { @@ -2362,7 +2371,7 @@ QTreeView::item:selected:active, QListView::item:selected:active, QTableView::item:selected:active, QColumnView::item:selected:active { - background-color: @ThemeAccentColor2; + background-color: @ThemeAccentColor1; } QTreeView::item:selected:!active, @@ -2795,7 +2804,7 @@ QWidget#thumbnailWidget { } QWidget#thumbnailWidget[state="hovered"] { - border: 1px solid @ThemeAccentColor2; + border: 1px solid @ThemeAccentColor1; } QWidget#thumbnailWidget[state="pressed"] { diff --git a/src/Gui/Tree.cpp b/src/Gui/Tree.cpp index a5cd892e6d6a..57f389984bd5 100644 --- a/src/Gui/Tree.cpp +++ b/src/Gui/Tree.cpp @@ -3795,7 +3795,7 @@ void DocumentItem::slotInEdit(const Gui::ViewProviderDocumentObject& v) ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath( "User parameter:BaseApp/Preferences/TreeView"); - unsigned long col = hGrp->GetUnsigned("TreeEditColor", 4294902015); + unsigned long col = hGrp->GetUnsigned("TreeEditColor", 563609599); QColor color(App::Color::fromPackedRGB(col)); if (!getTree()->editingItem) { @@ -5238,7 +5238,7 @@ void DocumentObjectItem::setHighlight(bool set, Gui::HighlightMode high) { f.setUnderline(underlined); f.setOverline(overlined); - unsigned long col = hGrp->GetUnsigned("TreeActiveColor", 3873898495); + unsigned long col = hGrp->GetUnsigned("TreeActiveColor", 1538528255); color = App::Color::fromPackedRGB(col); } else { diff --git a/src/Gui/TreeParams.cpp b/src/Gui/TreeParams.cpp index ffff611458d7..2f7a633f6ed1 100644 --- a/src/Gui/TreeParams.cpp +++ b/src/Gui/TreeParams.cpp @@ -117,9 +117,9 @@ class TreeParamsP: public ParameterGrp::ObserverType { funcs["KeepRootOrder"] = &TreeParamsP::updateKeepRootOrder; TreeActiveAutoExpand = handle->GetBool("TreeActiveAutoExpand", true); funcs["TreeActiveAutoExpand"] = &TreeParamsP::updateTreeActiveAutoExpand; - TreeActiveColor = handle->GetUnsigned("TreeActiveColor", 3873898495); + TreeActiveColor = handle->GetUnsigned("TreeActiveColor", 1538528255); funcs["TreeActiveColor"] = &TreeParamsP::updateTreeActiveColor; - TreeEditColor = handle->GetUnsigned("TreeEditColor", 2459042047); + TreeEditColor = handle->GetUnsigned("TreeEditColor", 563609599); funcs["TreeEditColor"] = &TreeParamsP::updateTreeEditColor; SelectingGroupColor = handle->GetUnsigned("SelectingGroupColor", 1082163711); funcs["SelectingGroupColor"] = &TreeParamsP::updateSelectingGroupColor;