vcl/unx/gtk3/custom-theme.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit ab26bd699ad49c57ae90b44a0fe8c586845da2f4 Author: Sahil Gautam <sahil.gautam.ext...@allotropia.de> AuthorDate: Sat Dec 28 08:47:11 2024 +0530 Commit: Sahil Gautam <sahil.gautam.ext...@allotropia.de> CommitDate: Fri Jan 10 08:39:28 2025 +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 <sahil.gautam.ext...@allotropia.de> 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() + ";"