Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contextual Menu font in GTK3 #124

Closed
lfom opened this issue Apr 14, 2021 · 0 comments
Closed

Contextual Menu font in GTK3 #124

lfom opened this issue Apr 14, 2021 · 0 comments

Comments

@lfom
Copy link

lfom commented Apr 14, 2021

Hello! The fact that the contextual menu in Gedit shows some generic monospace font always bothered me.

2021-04-14_17-53

Today I was trying another theme with GTK4 and noticed that it works fine there. Looking at the CSS code, it seems that adding font: initial to two .context-menu classes fixed the problem. Below is the resulting code that fixed the problem from gtk-3.0/gtk.css file.

Regards

menu,
.menu,
.context-menu {
  font: initial;
  margin: 4px;
  padding: 2px 0px;
  background: #2a2f3a;
  border: 1px solid #1f232b;
  border-radius: 5px; }
  .csd menu, .csd
  .menu, .csd
  .context-menu {
    border: none; }
  menu:backdrop,
  .menu:backdrop,
  .context-menu:backdrop {
    background-color: #323946; }
  menu menuitem,
  .menu menuitem,
  .context-menu menuitem {
    font: initial;
    min-height: 17px;
    min-width: 40px;
    padding: 4px 6px;
    text-shadow: none; }

Flameshot from 2021-04-14_18-11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants