Use default desktop font (Gtk/FontName from XSettings) when the font is not specified in the config file
This commit is contained in:
23
src/panel.c
23
src/panel.c
@@ -72,6 +72,7 @@ int num_panels;
|
||||
GArray *backgrounds;
|
||||
|
||||
Imlib_Image default_icon;
|
||||
char *default_font = NULL;
|
||||
|
||||
void default_panel()
|
||||
{
|
||||
@@ -1013,3 +1014,25 @@ void render_panel(Panel *panel)
|
||||
relayout(&panel->area);
|
||||
draw_tree(&panel->area);
|
||||
}
|
||||
|
||||
const char *get_default_font()
|
||||
{
|
||||
if (default_font)
|
||||
return default_font;
|
||||
return DEFAULT_FONT;
|
||||
}
|
||||
|
||||
void default_icon_theme_changed()
|
||||
{
|
||||
launcher_default_icon_theme_changed();
|
||||
}
|
||||
|
||||
void default_font_changed()
|
||||
{
|
||||
battery_default_font_changed();
|
||||
clock_default_font_changed();
|
||||
execp_default_font_changed();
|
||||
taskbar_default_font_changed();
|
||||
taskbarname_default_font_changed();
|
||||
tooltip_default_font_changed();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user