From cb290a239611be620a7463307e882abbd455d8f2 Mon Sep 17 00:00:00 2001 From: Alfredo Monclus Date: Tue, 27 May 2025 07:35:29 -0600 Subject: [PATCH] Gui: property-editor fix text not showing due to stylesheets --- src/Gui/Stylesheets/FreeCAD Dark.qss | 7 ++----- src/Gui/Stylesheets/FreeCAD Light.qss | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/Gui/Stylesheets/FreeCAD Dark.qss b/src/Gui/Stylesheets/FreeCAD Dark.qss index 558ad9c130..e8a49bce93 100644 --- a/src/Gui/Stylesheets/FreeCAD Dark.qss +++ b/src/Gui/Stylesheets/FreeCAD Dark.qss @@ -58,17 +58,14 @@ Gui--PropertyEditor--PropertyEditor QLineEdit:read-only, Gui--PropertyEditor--PropertyEditor QLineEdit:disabled, Gui--PropertyEditor--PropertyEditor QAbstractSpinBox:read-only, Gui--PropertyEditor--PropertyEditor QAbstractSpinBox:disabled { - color: transparent; border-color: transparent; background-color: #444444; - selection-color: transparent; selection-background-color: transparent; border-radius: 2px; } Gui--PropertyEditor--PropertyEditor > QWidget > QWidget > QLabel, Gui--PropertyEditor--PropertyEditor > QWidget > QWidget > QLabel:disabled { - color: transparent; background-color: transparent; border: none; border-radius: 2px; @@ -94,8 +91,8 @@ Gui--PropertyEditor--PropertyEditor > QWidget > QFrame:focus { /* hack to hide weird redundant information inside cells with links and no editable data (but editable via "..." button) */ Gui--PropertyEditor--PropertyEditor > QWidget > QWidget > QLabel { - color: #ffffff; - background-color: #ACC8E5; /* same as focused background color */ + color: #ffffff; + background-color: #ACC8E5; /* same as focused background color */ border-radius: 2px; } diff --git a/src/Gui/Stylesheets/FreeCAD Light.qss b/src/Gui/Stylesheets/FreeCAD Light.qss index e02c09c9ce..e3bb2dd855 100644 --- a/src/Gui/Stylesheets/FreeCAD Light.qss +++ b/src/Gui/Stylesheets/FreeCAD Light.qss @@ -58,17 +58,14 @@ Gui--PropertyEditor--PropertyEditor QLineEdit:read-only, Gui--PropertyEditor--PropertyEditor QLineEdit:disabled, Gui--PropertyEditor--PropertyEditor QAbstractSpinBox:read-only, Gui--PropertyEditor--PropertyEditor QAbstractSpinBox:disabled { - color: transparent; border-color: transparent; background-color: #ababab; - selection-color: transparent; selection-background-color: transparent; border-radius: 2px; } Gui--PropertyEditor--PropertyEditor > QWidget > QWidget > QLabel, Gui--PropertyEditor--PropertyEditor > QWidget > QWidget > QLabel:disabled { - color: transparent; background-color: transparent; border: none; border-radius: 2px; @@ -94,8 +91,8 @@ Gui--PropertyEditor--PropertyEditor > QWidget > QFrame:focus { /* hack to hide weird redundant information inside cells with links and no editable data (but editable via "..." button) */ Gui--PropertyEditor--PropertyEditor > QWidget > QWidget > QLabel { - color: #000000; - background-color: #ACC8E5; /* same as focused background color */ + color: #000000; + background-color: #ACC8E5; /* same as focused background color */ border-radius: 2px; }