vcl/unx/gtk3/custom-theme.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit e8f6751abb8894913933305c5273acf88ce1bac9 Author: Sahil Gautam <[email protected]> AuthorDate: Sat Dec 28 08:47:11 2024 +0530 Commit: Sahil Gautam <[email protected]> CommitDate: Mon Jan 26 09:37:34 2026 +0100 tdf#164420 Fix unselected Check/Radio buttons not following themes in GTK The button part of the check and radio buttons wasn't using theme colors, because till now I couldn't figure out what css nodes/properties it was using. Turns out the background for the buttons uses the background-image property. Set that to none with separator color as the border color, as that seemed to be the most sensible option. We might want to theme these too some day. Change-Id: I90a7fe5965d97e1437e13fe8e2f2a277a5b82485 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179486 Tested-by: Jenkins Reviewed-by: Sahil Gautam <[email protected]> (cherry picked from commit ab26bd699ad49c57ae90b44a0fe8c586845da2f4) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198080 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 54aa4a808325..13dcad562b1c 100644 --- a/vcl/unx/gtk3/custom-theme.cxx +++ b/vcl/unx/gtk3/custom-theme.cxx @@ -353,6 +353,12 @@ OString CreateStyleString() * Check n Radio * * ***************/ + "check," + "radio {" + " background-image: none;" + " border: 1px solid #" + aThemeColors.GetSeparatorColor().AsRGBHexString() + ";" + "}" + "check:disabled," "radio:disabled {" " background-color: #" + aThemeColors.GetDisabledColor().AsRGBHexString() + ";"
