Bug 1405819 - In TraditionalOK some fonts can become smaller than desirable
Summary: In TraditionalOK some fonts can become smaller than desirable
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: mate-themes
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Wolfgang Ulbrich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-18 16:34 UTC by Davide Repetto
Modified: 2016-12-21 20:25 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-18 17:38:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Picture showing how fonts can become very small (86.03 KB, image/png)
2016-12-18 16:34 UTC, Davide Repetto
no flags Details

Description Davide Repetto 2016-12-18 16:34:36 UTC
Created attachment 1233181 [details]
Picture showing how fonts can become very small

Description of problem:
=======================
Using the theme TraditionalOK in Mate some fonts can become smaller than desirable.

See the attached image as an example of what happens when using 8pt fonts.

mate-themes-3.22.4-1.fc25.noarch

Comment 1 Wolfgang Ulbrich 2016-12-18 17:38:31 UTC
TOK theme use 
statusbar label,
statusbar frame {
    color: @theme_fg_color;
    font-size: smaller;
}

for statusbars in gtk3.
And the theme is optimize for 10px font-size.
You can edit /usr/share/themes/TraditionalOk/gtk-3.0/gtk-widgets.css
Use 'font-size: normal' at line 196.

Comment 2 Davide Repetto 2016-12-19 13:50:29 UTC
First of all thank you very much for your input!

In order to have the modification survive package-updates I have copied the whole TraditionalOk folder to .local/share/ and edited the gtk-3.0/gtk-widgets.css there.

Do you know if there's a way that I can avoid a full copy and just keep my deltas in .local/share/?

Comment 3 Wolfgang Ulbrich 2016-12-21 07:51:08 UTC
see https://github.com/mate-desktop/mate-panel/issues/507#issuecomment-267675457
Here using  ~/.config/gtk-3.0/gtk.css is advised.
But i tried to generate this file with

statusbar label,
statusbar frame {
    color: @theme_fg_color;
    font-size: normal;
}

before i answered to you.

Comment 4 Davide Repetto 2016-12-21 12:01:21 UTC
it doesn't work for me either.
Oh well, thanks anyway. :)

Comment 5 Davide Repetto 2016-12-21 13:09:37 UTC
Hi Wolfgang,

I found why it didn't work: "normal" is not a valid value for "font-size:".
In fact GTK issues a warning while parsing it:
Gtk-WARNING **: Theme parsing error: gtk-widgets.css:196:15: not a number

So I created ~/.config/gtk-3.0/gtk.css with a valid value and it works:

statusbar label,
statusbar frame {
    color: @theme_fg_color;
    font-size: 90%;
}

Comment 6 Wolfgang Ulbrich 2016-12-21 20:25:38 UTC
Great, nice finder :-)
...i guess you know now to hack a theme for personal usage.
gtk3-inspector is the tool to find any selector for a gtk3 application, except firefox and libreoffice.......


Note You need to log in before you can comment on or make changes to this bug.