Giter Site home page Giter Site logo

Comments (11)

LBCrion avatar LBCrion commented on September 28, 2024

from sfwbar.

knm100 avatar knm100 commented on September 28, 2024

good for me, Looking forward to this being implemented.

from sfwbar.

LBCrion avatar LBCrion commented on September 28, 2024

from sfwbar.

knm100 avatar knm100 commented on September 28, 2024

in my oppion,it is best to have a fixed height setting, just like the width. so that if there is a problem with any widget, button, grid, etc., you can clearly see where the problem is, in this way it is easy to configure the sfwbar for non-professional users.
Of course, this is the view from the user's point , and from the view of developer's point , there is maybe more trouble than a non-fixed width

from sfwbar.

LBCrion avatar LBCrion commented on September 28, 2024

This topic is a bit complex. Gtk accepts min-width and min-height css properties, but the widget may grow larger than these dimensions if it needs more space. sfwbar introduces -GtkWidget-max-width and -GtkWidget-max-height properties that limit the max size, but these are non-standard and won't survive the eventual migration to gtk4.

So, it won't be easy to say from just reading the stylesheet what size each widget will have. Images are particularly thorny. I used to have them scaled to MIN(min-width, min-height) size. In an attempt to make the bar more scalable, I tried to make them more responsive (i.e. make them honor vexpand/hexpand properties and scale accordingly), but looks like this broke your layout!

Do you think it would be better to revert this and go back to sizing images to min-width/min-height?

from sfwbar.

knm100 avatar knm100 commented on September 28, 2024

I would prefer to be able to specify a size directly, with no maximum and no minimum. but that's just what suits my personal preference. maybe most other people would prefer min or max.
limited to my level of CSS, I prefer to respond directly to the tweaks I've made in the config file. that's why i prefer to be able to specify a size directly,with no maximum and no minimum.
It doesn't matter if it destroys my layout, I can readjust it, I just don't know how to do it now, it seems to be unresponsive to my adjustments.

from sfwbar.

LBCrion avatar LBCrion commented on September 28, 2024

from sfwbar.

knm100 avatar knm100 commented on September 28, 2024

readjust it done. thanks

from sfwbar.

knm100 avatar knm100 commented on September 28, 2024

-GtkWidget-vexpand and -GtkWidget-hexpand, they are not friendly to new. The actual effect is not easy to be control
-GtkWidget-valign: center; It is much simpler

from sfwbar.

knm100 avatar knm100 commented on September 28, 2024

Is there a way to set up "-GtkWidget-valign: center " to global except for "progressbar#memory progress" & "progressbar#memory trough" & "progressbar#memory" ?

from sfwbar.

knm100 avatar knm100 commented on September 28, 2024

sfwbar introduces -GtkWidget-max-width and -GtkWidget-max-height properties that limit the max size, but these are non-standard and won't survive the eventual migration to gtk4.
Do you think it would be better to revert this and go back to sizing images to min-width/min-height?

now "-GtkWidget-max-width:" and "-GtkWidget-max-height“ have a problem wiht high cpu usage (git rev:4dffd40)
so I think it's probably better to return to using mini, anyway, it's going to prot to GTK4 soon, and MAX is gone, so there's no need to waste time on MAX, it's more valuable to spend time on GTK4

from sfwbar.

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.