vcl/unx/gtk3/custom-theme.cxx |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

New commits:
commit e06d5e7e4ee16b4c71007ccbc0d454b6df3c23a0
Author:     Sahil Gautam <[email protected]>
AuthorDate: Thu Dec 26 00:12:54 2024 +0530
Commit:     Sahil Gautam <[email protected]>
CommitDate: Mon Jan 26 09:36:26 2026 +0100

    Use disable color for disabled controls in GTK
    
    Change-Id: I65bb0e6353cfc8a2240c7219a66fa4a82f4707a9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179410
    Tested-by: Jenkins
    Reviewed-by: Sahil Gautam <[email protected]>
    (cherry picked from commit 9051ec05066c113bde29d5c7b0a393ad923c1d99)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198078
    Reviewed-by: Sahil Gautam <[email protected]>
    Tested-by: Jenkins CollaboraOffice <[email protected]>

diff --git a/vcl/unx/gtk3/custom-theme.cxx b/vcl/unx/gtk3/custom-theme.cxx
index f7892bd68568..54aa4a808325 100644
--- a/vcl/unx/gtk3/custom-theme.cxx
+++ b/vcl/unx/gtk3/custom-theme.cxx
@@ -195,7 +195,7 @@ OString CreateStyleString()
         "}"
 
         "treeview.view.expander:disabled {"
-        "  color: #" + aThemeColors.GetInactiveColor().AsRGBHexString() + ";"
+        "  color: #" + aThemeColors.GetDisabledColor().AsRGBHexString() + ";"
         "}"
 
         // this part is still left
@@ -209,7 +209,7 @@ OString CreateStyleString()
 
         "treeview.view header button,"
         "treeview.view header button:disabled {"
-        "  background-color: #" + 
aThemeColors.GetInactiveColor().AsRGBHexString() + ";"
+        "  background-color: #" + 
aThemeColors.GetDisabledColor().AsRGBHexString() + ";"
         "}"
 
         "treeview.view header button:last-child {"
@@ -342,7 +342,7 @@ OString CreateStyleString()
         "}"
 
         "scrollbar slider:disabled {"
-        "  background-color: #" + 
aThemeColors.GetInactiveColor().AsRGBHexString() + ";"
+        "  background-color: #" + 
aThemeColors.GetDisabledColor().AsRGBHexString() + ";"
         "}"
 
         "scrollbar.overlay-indicator:not(.dragging):not(.hovering) {"
@@ -355,7 +355,7 @@ OString CreateStyleString()
 
         "check:disabled,"
         "radio:disabled {"
-        "  background-color: #" + 
aThemeColors.GetInactiveColor().AsRGBHexString() + ";"
+        "  background-color: #" + 
aThemeColors.GetDisabledColor().AsRGBHexString() + ";"
         "}"
 
         "check:checked,"
@@ -387,7 +387,7 @@ OString CreateStyleString()
         "radio:checked:disabled,"
         "radio:indeterminate:disabled {"
         "  color: rgba(17, 17, 27, 0.38);"
-        "  background-color: #" + 
aThemeColors.GetInactiveColor().AsRGBHexString() + ";"
+        "  background-color: #" + 
aThemeColors.GetDisabledColor().AsRGBHexString() + ";"
         "}"
 
         /***************
@@ -453,7 +453,7 @@ OString CreateStyleString()
         "}"
 
         "button:disabled {"
-        "  background-color: #" + 
aThemeColors.GetInactiveColor().AsRGBHexString() + ";"
+        "  background-color: #" + 
aThemeColors.GetDisabledColor().AsRGBHexString() + ";"
         "  color: #" + aThemeColors.GetInactiveTextColor().AsRGBHexString() + 
";"
         "  border: 1px solid #" + 
aThemeColors.GetInactiveBorderColor().AsRGBHexString() + ";"
         "}"
@@ -516,7 +516,7 @@ OString CreateStyleString()
 
         "button.combo:only-child:disabled {"
         "  box-shadow: 0 0 0 2px transparent;"
-        "  background-color: #" + 
aThemeColors.GetInactiveColor().AsRGBHexString() + ";"
+        "  background-color: #" + 
aThemeColors.GetDisabledColor().AsRGBHexString() + ";"
         "  color: #" + aThemeColors.GetInactiveTextColor().AsRGBHexString() + 
";"
         "}"
 

Reply via email to