Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GtkScale slider is painted outside of container (GTK 3.22) #51

Open
trancexpress opened this issue May 1, 2018 · 2 comments
Open

GtkScale slider is painted outside of container (GTK 3.22) #51

trancexpress opened this issue May 1, 2018 · 2 comments

Comments

@trancexpress
Copy link

Here is an inspection of a GtkContainer with a GtkScale:

gtk322_scale_slider_image

This is more pronounced in Eclipse SWT, where anything outside of the container is not painted:

gtk322_scale_in_swt

The following seems to fix the problem:

diff --git a/src/clearlooks-phenix-theme-7.0.1/gtk-3.0/gtk-widgets.css b/src/clearlooks-phenix-theme-7.0.1/gtk-3.0/gtk-widgets.css
index 09c9159..89d9e58 100644
--- a/src/clearlooks-phenix-theme-7.0.1/gtk-3.0/gtk-widgets.css
+++ b/src/clearlooks-phenix-theme-7.0.1/gtk-3.0/gtk-widgets.css
@@ -384,14 +384,10 @@ row:selected:focus progressbar trough {
  * GtkScale *
  ************/
 
-scale.vertical {
-    min-width: 10px;
-    padding: 3px 5px;
-}
-
-scale.horizontal {
-    min-height: 10px;
-    padding: 5px 2px;
+scale {
+  min-height: 13px;
+  min-width: 21px;
+  padding: 12px;
 }
 
 scale.horizontal slider,
@trancexpress
Copy link
Author

I'll try out some other changes to the theme and will post my findings.

@trancexpress
Copy link
Author

Here is what I arrived at:

diff --git a/src/clearlooks-phenix-theme-7.0.1/gtk-3.0/gtk-widgets.css b/src/clearlooks-phenix-theme-7.0.1/gtk-3.0/gtk-widgets.css
index 09c9159..030bd14 100644
--- a/src/clearlooks-phenix-theme-7.0.1/gtk-3.0/gtk-widgets.css
+++ b/src/clearlooks-phenix-theme-7.0.1/gtk-3.0/gtk-widgets.css
@@ -386,12 +386,12 @@ row:selected:focus progressbar trough {
 
 scale.vertical {
     min-width: 10px;
-    padding: 3px 5px;
+    padding: 9px 5px;
 }
 
 scale.horizontal {
     min-height: 10px;
-    padding: 5px 2px;
+    padding: 5px 9px;
 }
 
 scale.horizontal slider,

Before:

padding_as_is

After:

padding_9x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant