Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 538  / 3 Years ago, mon, october 4, 2021, 7:35:05

After I installed the Radiance theme in Ubuntu 20.04 and set the system to use it, there are no horizontal menu separators in the menus. I noticed it in Firefox, because the separators I created between bookmarks didn't show up in the bookmarks menu (although they are correctly visible in Show All Bookmarks window), but the same is happening for other menus, eg. menus dropping from top GNOME panel (I use GNOME Flashback).


When switching to some of the default system themes, like Yaru or Adwaita, the separators are visible. What should I change in theme's CSS files to bring the separators back?


More From » 20.04

 Answers
5

Found a solution :)
I noted that Ambiance theme has these separators, while Radiance theme doesn't. By comparing the gtk-3.20/gtk-widgets.css files in both themes I found that it's enough to comment out the line border:none in the following fragment to get the separators back:


menu separator {
margin-left: 5px;
margin-right: 5px;
border: none;
color: @dark_bg_color;
}

However, the separators have a very light colour and are hardly visible, so additionally I made them a bit darker by changing 0.99 to 0.8 in the next fragment:


menu separator {
border-color: shade (@dark_bg_color, 0.99);
border-bottom-color: alpha (shade (@dark_bg_color, 1.26), 0.5);
border-right-color: alpha (shade (@dark_bg_color, 1.26), 0.5);
}

That basically solves the issue.


[#3218] Wednesday, October 6, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
whoppinolo

Total Points: 93
Total Questions: 113
Total Answers: 107

Location: Cyprus
Member since Mon, Oct 24, 2022
2 Years ago
whoppinolo questions
Tue, Feb 14, 23, 08:30, 1 Year ago
Wed, Sep 28, 22, 06:56, 2 Years ago
Fri, May 27, 22, 01:55, 2 Years ago
Tue, Oct 12, 21, 09:33, 3 Years ago
;