diff --git a/hiro/gtk/application.cpp b/hiro/gtk/application.cpp index 63f6823a..fe44a383 100755 --- a/hiro/gtk/application.cpp +++ b/hiro/gtk/application.cpp @@ -169,7 +169,18 @@ auto pApplication::initialize() -> void { widget_class "*..." style "HiroTabFrameCloseButton" )"); #elif HIRO_GTK==3 - //TODO: is there any alternative here with GTK3? + GtkCssProvider *provider; + GdkScreen *screen; + + provider = gtk_css_provider_new(); + gtk_css_provider_load_from_data(GTK_CSS_PROVIDER (provider), R"( + scale { padding-top: 0; padding-bottom: 0; } + entry { min-height: 0; } + button { padding: 0; } + )", -1, NULL); + + screen = gdk_screen_get_default(); + gtk_style_context_add_provider_for_screen(screen, GTK_STYLE_PROVIDER (provider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); #endif pKeyboard::initialize();