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

Display Text Within Spacer #43

Open
mysteryx93 opened this issue Jul 28, 2024 · 8 comments
Open

Display Text Within Spacer #43

mysteryx93 opened this issue Jul 28, 2024 · 8 comments

Comments

@mysteryx93
Copy link

Currently I need one spacer to the left, a Window Title widget, then another spacer to the right. Both spacers need to be configured separately, and the actions are inconsistent between the Window Title and the space around it.

What if a single spacer could replace all that? All if would take is the ability to display desired text, such as Window Title, in the middle or desired alignment.

@luisbocanegra
Copy link
Owner

luisbocanegra commented Jul 28, 2024

What if a single spacer could replace all that? All if would take is the ability to display desired text, such as Window Title, in the middle or desired alignment.

That will be an overkill IMHO, I will be maintaining yet another widget tat shows the window title and I'd rather not do that.

Both spacers need to be configured separately, and the actions are inconsistent between the Window Title and the space around it.

What I can do instead is allow importing/exporting the configuration OR make all the widgets share the same common configuration file somehow.

@mysteryx93
Copy link
Author

It's actually no big deal configuring it twice. Just a bit annoying.

Adding options for sharing configuration could make things more complex, for not much actual benefits.

@luisbocanegra
Copy link
Owner

Adding options for sharing configuration could make things more complex, for not much actual benefits.

Can you elaborate on that?

actions are inconsistent between the Window Title and the space around it.

I think I didn't understand what you meant with this.

@mysteryx93
Copy link
Author

I mean. I just need to right-click on the left panel and configure it, and right-click on the right panel and configure it. It might take 2-3 minutes to repeat for both. Annoying but just needs to be done once.

For the whole top section, excluding controls on the left-side and right-side, I can double-click to un-maximize windows. White space supports drag actions; but if I do it over the Window Title area, that won't work. Both support mouse wheel actions, but the behavior will be different between scrolling on the Window Title text and the white space on either side of it. It brings inconsistent behaviors. Ideally that whole section would behave the same.

@luisbocanegra
Copy link
Owner

For the whole top section, excluding controls on the left-side and right-side, I can double-click to un-maximize windows. White space supports drag actions; but if I do it over the Window Title area, that won't work. Both support mouse wheel actions, but the behavior will be different between scrolling on the Window Title text and the white space on either side of it. It brings inconsistent behaviors. Ideally that whole section would behave the same.

Okay I understand you now. I don't know which Window Title widget are you using but it's expected that both have different features.

There's nothing I can do about that, apart from "injecting" the clickable area of my own widget into other widgets (in a Panel Colorizer kind of way) but that's a bit of a complex workaround I am not 100% sure is possible.

@mysteryx93
Copy link
Author

mysteryx93 commented Jul 28, 2024

It's the standard Window Title widget.

There's nothing I can do about that, apart from "injecting" the clickable area of my own widget into other widgets (in a Panel Colorizer kind of way) but that's a bit of a complex workaround I am not 100% sure is possible.

That looks complicated

Is that really easier to do than simply displaying text? However some people prefer to have the clock in the middle so it's not that simple; but then the clock has its own specific actions.

@luisbocanegra
Copy link
Owner

luisbocanegra commented Jul 28, 2024

That looks complicated

Yeah...

Is that really easier to do than simply displaying text?

Not really. But it would be doing more than I initially intended it was for, I start adding title, people may ask for styling of it, just like the window title does and other features, or even asking me to add the window buttons too.

However some people prefer to have the clock in the middle so it's not that simple; but then the clock has its own specific actions.

Good point. After all, if it comes to just showing the title and nothing more I already know the last active task so it's a matter of just displaying it. Will do some experiments with that.

@mysteryx93
Copy link
Author

mysteryx93 commented Jul 28, 2024

It would require some minimal styling options, and options as to what text to display. That would be good for my personal needs.

Garuda Linux by default shows the Window Title on the left of the Global Menu and the Clock in the middle, so it wouldn't work well here. Clock has an action for Click, but only for Click. Mouse wheel or drag actions could still work; but ya that would be a complicated issue. And the "Full horizontal date" is a larger zone that is unresponsive. Unless it simply displays the full date but no calendar, and the time is in the corner and that shows the calendar on click.

Window buttons handle their own clicks so there's no need to catch mouse events there.

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

2 participants