wa4*_*557 5 gnome colors themes unity
我找到了一个我非常喜欢的主题(任何感兴趣的人都可以使用 Flatstudio),但只有一件小事没有按预期工作:

如果您查看指示器消息菜单中的屏幕截图,它看起来非常棒(图标来自 Numix 图标主题),但指示在线状态的“bulletpoint”与菜单背景颜色具有相同的颜色,并且是所以看不见……
我不想改变菜单的颜色,而是可能的项目符号的颜色,因为其他主题有不同的颜色。我已经安装,gnome-color-chooser但找不到更改此特定颜色的选项。
我愿意自己更改相应 .css 文件中的行,但我现在需要了解如何调用相应变量。
任何人都可以帮忙吗?
编辑:由于同样的原因,我发现电池指示器和蓝牙指示器等中的复选标记也是不可见的。是否也可以更改菜单图标和文本之间的距离?
您已经对主题 css 文件进行了操作。
在 css 文件中搜索“bullet”东西并更改它们并查看结果。尝试将 @theme_selected_fg_color 更改为白色或任何其他颜色并查看差异。
必须更改的文件是:
Flatstudio/gtk-3.0/menu.css Flatstudio/gtk-3.0/menu_frame.css
在 menu.css 中:
改变这个:
.menuitem:hover,
.menu .menuitem:hover {
/* contextual menu item-selected */
background-image: -gtk-gradient (linear, left top, left bottom,
from (shade (@theme_selected_bg_color, 1.0)),
to (shade (@theme_selected_bg_color, 1.0)));
color: @theme_selected_fg_color;
text-shadow: 0px 1px @theme_selected_shadow_color;
-unico-bullet-color: @theme_selected_fg_color;
}
Run Code Online (Sandbox Code Playgroud)
对此
.menuitem:hover,
.menu .menuitem:hover {
/* contextual menu item-selected */
background-image: -gtk-gradient (linear, left top, left bottom,
from (shade (@theme_selected_bg_color, 1.0)),
to (shade (@theme_selected_bg_color, 1.0)));
color: #ffffff;
text-shadow: 0px 1px @theme_selected_shadow_color;
-unico-bullet-color: #ffffff;
}
Run Code Online (Sandbox Code Playgroud)
并改变这一点:
.menuitem.check:active:hover,
.menuitem.radio:active:hover {
border-width: 0px;
border-style: none;
background-image: none;
background-color: @theme_selected_bg_color;
color: @theme_selected_fg_color;
-unico-bullet-color: @theme_selected_fg_color;
}
Run Code Online (Sandbox Code Playgroud)
对此
.menuitem.check:active:hover,
.menuitem.radio:active:hover {
border-width: 0px;
border-style: none;
background-image: none;
background-color: @theme_selected_bg_color;
color: #ffffff;
-unico-bullet-color: #ffffff;
}
Run Code Online (Sandbox Code Playgroud)
现在转到另一个文件 menu_frame.css:
改变这个:
.menuitem:hover,
.menu .menuitem:hover {
/* contextual menu item-selected */
background-image: -gtk-gradient (linear, left top, left bottom,
from (shade (@theme_selected_bg_color, 1.0)),
to (shade (@theme_selected_bg_color, 1.0)));
color: @theme_selected_fg_color;
text-shadow: 0px 1px @theme_selected_shadow_color;
-unico-bullet-color: @theme_selected_fg_color;
}
Run Code Online (Sandbox Code Playgroud)
对此
.menuitem:hover,
.menu .menuitem:hover {
/* contextual menu item-selected */
background-image: -gtk-gradient (linear, left top, left bottom,
from (shade (@theme_selected_bg_color, 1.0)),
to (shade (@theme_selected_bg_color, 1.0)));
color: #ffffff;
text-shadow: 0px 1px @theme_selected_shadow_color;
-unico-bullet-color: #ffffff;
}
Run Code Online (Sandbox Code Playgroud)
并改变这一点:
.toolbar .menuitem:hover,
Genericmenuitem .menuitem:hover,
DbusmenuGtkMenu .menuitem:hover,
.primary-toolbar .menuitem:hover,
.menubar.menuitem:hover,
.menubar .menuitem:hover {
/* dark menu item-selected */
background-image: -gtk-gradient (linear, left top, left bottom,
from (shade (@theme_selected_bg_color, 1.0)),
to (shade (@theme_selected_bg_color, 1.0)));
color:@theme_selected_fg_color;
text-shadow: 0px 1px @theme_selected_shadow_color;
-unico-bullet-color: @theme_selected_fg_color;
border-image: none;
}
Run Code Online (Sandbox Code Playgroud)
对此
.toolbar .menuitem:hover,
Genericmenuitem .menuitem:hover,
DbusmenuGtkMenu .menuitem:hover,
.primary-toolbar .menuitem:hover,
.menubar.menuitem:hover,
.menubar .menuitem:hover {
/* dark menu item-selected */
background-image: -gtk-gradient (linear, left top, left bottom,
from (shade (@theme_selected_bg_color, 1.0)),
to (shade (@theme_selected_bg_color, 1.0)));
color:#ffffff;
text-shadow: 0px 1px @theme_selected_shadow_color;
-unico-bullet-color: #ffffff;
border-image: none;
}
Run Code Online (Sandbox Code Playgroud)
最后改成这样:
.menuitem.check:active,
.menuitem.radio:active {
border-width: 0px;
border-style: none;
background-image: none;
background-color: @menu_bg_color;
/* contextual menu check */
color: @theme_selected_fg_color;
-unico-bullet-color: @theme_selected_fg_color;
}
Run Code Online (Sandbox Code Playgroud)
对此:
.menuitem.check:active,
.menuitem.radio:active {
border-width: 0px;
border-style: none;
background-image: none;
background-color: @menu_bg_color;
/* contextual menu check */
color: #ffffff;
-unico-bullet-color: #ffffff;
}
Run Code Online (Sandbox Code Playgroud)
我测试了它,这些是结果:
前

后

| 归档时间: |
|
| 查看次数: |
927 次 |
| 最近记录: |