Comments (11)
from sfwbar.
good for me, Looking forward to this being implemented.
from sfwbar.
from sfwbar.
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.
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.
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.
from sfwbar.
readjust it done. thanks
from sfwbar.
-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.
Is there a way to set up "-GtkWidget-valign: center " to global except for "progressbar#memory progress" & "progressbar#memory trough" & "progressbar#memory" ?
from sfwbar.
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)
- Sfwbar crashes when I connect my phone to my PC via bluetooth HOT 4
- pulse-module not recognized in beta15 HOT 14
- Taskbar has once again vanished from a display after it was powered off overnight HOT 2
- Possible copy-paste errors in documentation for ExecClient HOT 3
- Malformed layout of usage.widget HOT 1
- "css" widget property apparently can't be an expression that evaluates to a string HOT 2
- Incorrect taskbar groups (sub-items) positioning HOT 2
- Bar reload on SIGHUP undocumented HOT 1
- Allow Python script embedded in startmenu.widget to be used on its own HOT 4
- Segmentation fault when clicking on taskbar group sub-item HOT 2
- sfwbar core dumping with when started with '-f' option HOT 2
- Segfaulting when clicking icons HOT 2
- Network module issue HOT 29
- sfwbar core dumped when clicking an item in taskbar group HOT 2
- volume icon disappeared in beta15 HOT 2
- No taskbar/taskbar not showing opened applications HOT 14
- Segfault when launching `waybar` -> `nm-applet` -> `sfwbar` -> `labwc` HOT 7
- [feature request] close PopUp with a button inside the PopUp HOT 4
- [Question] Will issue #111 be possible on labwc? HOT 3
- No tooltip in tray items HOT 22
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sfwbar.