-
Notifications
You must be signed in to change notification settings - Fork 18
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
Box using scrollable property in Gtk3 fails #151
Comments
Please try setting The bottom left dialog doesn't show a scrollbar probably because it's using default GTK3 settings, which make scrollbars only display on hover. To make scrollbars display permanently - when enabled - set environment variable *{
-GtkScrollbar-has-backward-stepper: 1;
-GtkScrollbar-has-forward-stepper: 1;
-GtkRange-slider-width: 13;
-GtkRange-stepper-size: 13;
} Play out with those styles to find a minimum effective set - I think some styles are deprecated in subsequent GTK+ versions. You can add the styles just for this window using gtkdialog option --styles or permanently for all GTK3 windows in |
Indeed some themes could cause further issues but not knowing which default theme a user has chosen, you can only throw in some defensive styles. I often add these two to the application stylesheet: /* override theme */
.frame { border-style: none; } /* don`t frame boxes -- does not impact gtkdialog`s frame */
scrollbar.vertical slider { min-height: 0; } /* don`t make scrollable window taller than necessary */ |
When it comes to frames on v/hbox, I tried the @step solution with his defensive css style, but it did not work here. At least not out of the box... I have to investigate further... Most gtk3 themes in Puppy shows box-framing. Polished-Blue does not. |
@zigbert The Puppy GTK+ 3 themes are all based on raleigh-reloaded. Polished-Blue is special because it replaces big parts of it and has many images, while the other themes focus on buttons, scrollbars, etc' while leaving menus, frames, etc' intact, just like the old GTK+ 2 themes. It is perfectly possible that Polished-Blue has theme bugs, although I tested it very heavily and compared applications with dual GTK+ 2/3 support to ensure it's visually consistent. I recommend Gradient-grey if you need a theme to test against, because it's very close to Raleigh and very consistent in sizing, spacing, etc'. |
@zigbert, I believe you can fix that issue directly in the themes. It's a different issue although confusingly it still involves frames. Take a look at this unmerged PR and see if it can help puppylinux-woof-CE/gtk3_flat_grey_rounded#6 @dimkr any comments? |
@step- I missed your PR for some reason 😊 I don't mind changes to the themes as long as these are small, safe and well-tested fixes for inconsistencies between GTK+ 2 and 3. GTK+ 3 themes can be very delicate, sometimes you fix something in one widget and end up breaking another because they inherit from each other: woof-CE just takes master, so the damage potential is non-zero. If we start a theme bug fixing round, we should cherry-pick the same fix into 5 repos: https://github.com/puppylinux-woof-CE/gtk3_gradient_grey |
I don't use those themes daily, so I can't vouch for spreading changes. I wrote that PR when I pushed gtk3_flat_grey_rounded to the fatdog repo but I don't use flat grey rounded myself. I remember that @jamesbond3142 was either using or testing that theme (or a derived one) and liked the change. |
The example-script should describe the issue.
When using
scrollable="true"
, most other box properties fails (height
works in example).If hiding scrollbar with
vscrollbar-policy="2"
, all properties seem to fail.This occurs only in Gtk3. In Gtk2 everything works as expected.
The text was updated successfully, but these errors were encountered: