hello,
is it possible to use Themes > Controls > Mint-Y-Dark, but keep textfields white?
Atleast in Firefox I notice most input fields have a dark background with this theme on, and a black font, so it's very difficult to read
Dark theme but white textbox background?
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Dark theme but white textbox background?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
- smurphos
- Level 18
- Posts: 8498
- Joined: Fri Sep 05, 2014 12:18 am
- Location: Irish Brit in Portugal
- Contact:
Re: Dark theme but white textbox background?
It's a Firefox bug with the way it interprets dark themes.
::::::Edited post::::::
A workaround is to create a
1234567.default is a placeholder for whatever Firefox has named your default profile folder.
Here is a small script here which can automate this process. Copy and paste into a text file, save as
::::::Edited post::::::
A workaround is to create a
user.js
file in ~/.mozilla/firefox/1234567.default with the contents user_pref("widget.content.gtk-theme-override", "Adwaita");
which forces firefox to use Adwaita (the default GTK theme) to theme website content.1234567.default is a placeholder for whatever Firefox has named your default profile folder.
Here is a small script here which can automate this process. Copy and paste into a text file, save as
Firefox_fix.sh
or similar, make executable and run in a terminal window to create the file in the correct location.Code: Select all
#!/bin/bash
#Description: Helper file to write user.js to /$HOME/.mozilla/firefox/usersprofile.default folder in order to fix issues with text visibility in input fields with some themes
if find "$HOME"/.mozilla/firefox/ -maxdepth 1 -type d -name '*.default' | head -1; then
TARGETPATH=$(find "$HOME"/.mozilla/firefox/ -maxdepth 1 -type d -name '*.default' | head -1)
TARGETFILE="$TARGETPATH/user.js"
TARGETSTRING="user_pref(\"widget.content.gtk-theme-override\", \"Adwaita\");"
if [ ! -f "$TARGETFILE" ]; then
touch "$TARGETFILE"
echo "creating file $TARGETFILE"
echo ""
fi
if ! grep -q "widget.content.gtk-theme-override" "$TARGETFILE"; then
echo "$TARGETSTRING" >> "$TARGETFILE"
echo "writing string '$TARGETSTRING' to $TARGETFILE"
echo ""
echo "please restart Firefox for fix to take effect"
else
echo "$TARGETFILE already contains a widget.content.gtk-theme-override"
fi
else
echo "could not locate your .default firefox profile"
fi
echo ""
read -rp "Press enter to exit the script."
exit
Last edited by smurphos on Sun Aug 26, 2018 8:22 am, edited 1 time in total.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Re: Dark theme but white textbox background?
hi,
I have the same issue as the OP and am posting for clarification.
do I do this first:
[A workaround is to create a
and then execute the script or is it all in the script.
I have the same issue as the OP and am posting for clarification.
do I do this first:
[A workaround is to create a
userChrome.css
file in ~/.mozilla/firefox/1234567.default/chrome with the contents input, textarea { color: #222; background: #eee; }
which forces firefox to use very dark grey text on a very light grey background for input fields.]and then execute the script or is it all in the script.
- smurphos
- Level 18
- Posts: 8498
- Joined: Fri Sep 05, 2014 12:18 am
- Location: Irish Brit in Portugal
- Contact:
Re: Dark theme but white textbox background?
Hi,gunnar26 wrote: ⤴Wed Mar 28, 2018 4:28 pm hi,
I have the same issue as the OP and am posting for clarification.
do I do this first:
[A workaround is to create auserChrome.css
file in ~/.mozilla/firefox/1234567.default/chrome with the contentsinput, textarea { color: #222; background: #eee; }
which forces firefox to use very dark grey text on a very light grey background for input fields.]
and then execute the script or is it all in the script.
No - it's one or the other. The script just automates applying the described workaround.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Re: Dark theme but white textbox background?
It's bothered me for some years that the really dark themes black out login, etc. boxes and don't compensate with a readable white font. I've usually done a mix and match of dark elements but with Controls that created too much light space - but they worked. Recently discovered "Jet-Grey" Cinnamon theme that manages a pretty nice balance of mainly dark without the readability problems the deep dark themes all seem to produce.
TRUST BUT VERIFY any advice from anybody, including me. Mint/Ubuntu user since 10.04 LTS. LM20 64 bit XFCE (Dell 1520). Dual boot LM20 XFCE / Win7 (Lenovo desktop and Acer netbook). Testing LM21.1 Cinnamon and XFCE Live for new Lenovo desktop.
Re: Dark theme but white textbox background?
Hi,
Many thanks for posting this fix, I am grateful.
Many thanks for posting this fix, I am grateful.
- smurphos
- Level 18
- Posts: 8498
- Joined: Fri Sep 05, 2014 12:18 am
- Location: Irish Brit in Portugal
- Contact:
Re: Dark theme but white textbox background?
An improved fix for this issue is described in my post above - viewtopic.php?p=1450174#p1450174
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.