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

Buttons: Rewrite #1278

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Buttons: Rewrite #1278

wants to merge 1 commit into from

Conversation

danirabbit
Copy link
Member

@danirabbit danirabbit commented Jan 17, 2024

Try to rewrite with fewer overrides and selectors that are easier to follow

  • Circular image buttons are now flat by default
  • All image buttons are now circular by default (might be a mistake)
  • Popover image buttons might need a default background?
  • Image buttons in OSDs have a duplicate background we probably don't want

BEFORE

Screenshot from 2024-01-17 14 54 57
Screenshot from 2024-01-17 14 54 51
Screenshot from 2024-01-17 14 54 44
Screenshot from 2024-01-17 14 54 39

AFTER

Screenshot from 2024-01-17 14 53 44
Screenshot from 2024-01-17 14 53 35
Screenshot from 2024-01-17 14 53 31
Screenshot from 2024-01-17 14 53 27

@wpkelso
Copy link
Member

wpkelso commented Mar 3, 2025

Don't know if there is any more planned work on this, but I'm not really a fan of losing the background in the pop-over buttons. In my opinion, if we remove the background, we lose the implication that some immediate action of consequence will happen if the icon is pushed, and it parses more as a label of some sort.

@danirabbit
Copy link
Member Author

Yeah this is kind of dead code. In the Granite stylesheet branch I added backgrounds for popover buttons: elementary/granite#710

I think I also would like to adopt a convention about circles vs squares to distinguish between toggles and actions like in Quick Settings. Everything is just so complicated it really needs some super careful consideration and lots of testing

@wpkelso
Copy link
Member

wpkelso commented Mar 3, 2025

Yeah this is kind of dead code. In the Granite stylesheet branch I added backgrounds for popover buttons: elementary/granite#710

Ah, is stylesheet totally integrated into granite now? If that's the case, should this repo be archived for clarity?


Dunno where discussion about what convention to adopt should take place, but I suspect it's not this issue 😅

@danirabbit
Copy link
Member Author

Ah, is stylesheet totally integrated into granite now?

@wpkelso no not yet! It's a goal of mine for Platform 9 but I haven't had time to work on it

@wpkelso
Copy link
Member

wpkelso commented Mar 3, 2025

Oh neat! I'd love to try and help where I can then with that.

Getting back on topic, this can probably be closed then?

@danirabbit
Copy link
Member Author

@wpkelso I left it open just as draft in case there was any interesting code here that I might want to use later :)

Yeah! Here's the main branch: elementary/granite#703

I'll try to make some time soon to write up like the main motivations and big ideas

@wpkelso
Copy link
Member

wpkelso commented Mar 5, 2025

@danirabbit What are your thoughts on putting pull requests like this one under a For Parts or similar tag? The idea would be to easily sort out requests that are considered "dead" or out of active consideration/development, but might still be a source of interesting code or ideas.

@danirabbit
Copy link
Member Author

I dunno if it's worth adding a whole separate tag. It is marked as draft already 🤷🏻‍♀️

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

Successfully merging this pull request may close these issues.

2 participants