Set the Font Size for Gnome's modal-dialog

Summary

Today I managed to optimize the font size for Gnome’s modal-dialog, which would make it look better.

How

Go to the theme folder.

For one particular user, go to ~/.themes; For all users, go to usr/share/themes.

Then go to gnome-shell and open gnome-shell.css.

Find .modal-dialog-linked-button and change the property font-size to a suitable value, so that the button will look better.

Meanwhile, the font size of the content box could be modified so that it would go on well with the button. Find .modal-dialog .modal-dialog-content-box , and change font-size to a suitable value once again.

Last but not least, I set another value for the font size of shell to make the whole interface of gnome look better.

Code to Add:

stage {
  font-family: Ubuntu;
  font-size: 12pt;
  font-weight: 500;
  color: #242424;
}

Now it looks much better.

P.S. What a struggle it is.

I searched on Google for a few hours. It’s a struggle with insufficient vocabulary.

First, I took a screenshot of my gnome and used Google photos, the result was authenticate interface, then I found popup, and then log out popup. At that moment, I happened to see dialog, then authentication dialog. Then I found a Russian who posted a question on askubuntu which involved modal. In the end, I got to know exactly the name of the damn thing.

Luckily I made it finally, otherwise, it would be very frustrating.

AND

C S S

IS

AWESOME


Set the Font Size for Gnome's modal-dialog
https://blog.h3a.moe/en/src/d07217/
Author
H3arn
Posted on
2021-04-18, Sun, 11:32 PM
Licensed under