mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 15:41:12 +02:00
lcl gtk3: load theme.css only if existing
This commit is contained in:
parent
166d1b6dbf
commit
f87fe0303d
@ -351,7 +351,8 @@ begin
|
||||
|
||||
|
||||
cssProvider := gtk_css_provider_new();
|
||||
gtk_css_provider_load_from_path(cssProvider, 'theme.css', nil);
|
||||
if FileExists('theme.css') then
|
||||
gtk_css_provider_load_from_path(cssProvider, 'theme.css', nil);
|
||||
gtk_style_context_add_provider_for_screen(gdk_screen_get_default(),
|
||||
PGtkStyleProvider(cssProvider),
|
||||
GTK_STYLE_PROVIDER_PRIORITY_USER);
|
||||
|
Loading…
Reference in New Issue
Block a user