问题描述:
- 使用的是gtk-dusk的深色主题,桌面为xfce4
- 环境变量GTK2_RC_FILES文件的内容设置为了
include "/usr/share/themes/Xfce-dawn/gtk-2.0/gtkrc"
- 火狐浏览网页时很多区域为深色背景,黑色字体,导致阅读困难
解决:
- 进入preference->contents->colors,background选择白色,去除勾选use system colors
- 创建文件.mozilla/firefox/3sb1iqq8.default/chrome/userContent.css,输入以下内容:
input {
border: 2px inset white;
background-color: white;
color: black;
-moz-appearance: none !important;
}
textarea {
border: 2px inset white;
background-color: white;
color: black;
-moz-appearance: none !important;
}
select {
border: 2px inset white;
background-color: white;
color: black;
-moz-appearance: none !important;
}
input[type="radio"],
input[type="checkbox"] {
border: 2px inset white ! important;
background-color: white ! important;
color: ThreeDFace ! important;
-moz-appearance: none !important;
}
*|*::-moz-radio {
background-color: white;
-moz-appearance: none !important;
}
button,
input[type="reset"],
input[type="button"],
input[type="submit"] {
border: 2px outset white;
background-color: #eeeeee;
color: black;
-moz-appearance: none !important;
}
body {
background-color: white;
color: black;
display: block;
margin: 8px;
-moz-appearance: none !important;
} - 另外可以安装FT DeapDark主题,并安装stylish+html floating scrollbars for FT DeapDark,这样右侧的scrollbar看起来就会好受些