Giter Site home page Giter Site logo

Comments (8)

step- avatar step- commented on June 13, 2024

If hiding scrollbar with vscrollbar-policy="2", all properties seem to fail.

Please try setting vscrollbar-policy="3" in the bottom right dialog. Do you get what you expect?
(You wrote "all properties" but I don't know exactly what those are; I can see the height is wrong).

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 GTK_OVERLAY_SCROLLING=0 and add styles

*{
-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 $XDG_CONFIG_HOME/gtk-3.0/gtk.css.

from gtkdialog.

01micko avatar 01micko commented on June 13, 2024

@zigbert I think @step- has something there.

dialog3

Still scrolls too. Of course a lot is dependent on the current system gtk3 theme too.

from gtkdialog.

step- avatar step- commented on June 13, 2024

Of course a lot is dependent on the current system gtk3 theme too.

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 */

from gtkdialog.

zigbert avatar zigbert commented on June 13, 2024

vscrollbar-policy="3" did the trick. Thanks a lot!

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.

from gtkdialog.

dimkr avatar dimkr commented on June 13, 2024

@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'.

from gtkdialog.

step- avatar step- commented on June 13, 2024

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, 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?

from gtkdialog.

dimkr avatar dimkr commented on June 13, 2024

@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
https://github.com/puppylinux-woof-CE/gtk3_polished_blue
https://github.com/puppylinux-woof-CE/gtk3_flat_grey_rounded
https://github.com/puppylinux-woof-CE/gtk3_stark_blueish
https://github.com/puppylinux-woof-CE/gtk3_buntoo_ambience

from gtkdialog.

step- avatar step- commented on June 13, 2024

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.

from gtkdialog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.