Skip to content

Build style switch buttons dynamically from gsettings#434

Closed
davidmhewitt wants to merge 13 commits intomasterfrom
dynamic-stylebuttons
Closed

Build style switch buttons dynamically from gsettings#434
davidmhewitt wants to merge 13 commits intomasterfrom
dynamic-stylebuttons

Conversation

@davidmhewitt
Copy link
Copy Markdown
Member

Fixes #395

Adds a key to gsettings that contains a list of style schemes to be shown on the buttons in the menu. The buttons are then built by loading colours and titles from the style scheme itself.

Allows downstreams to override which styles they want to display a selection of easier.

Copy link
Copy Markdown
Collaborator

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works, but looks a bit weird if there are more (or less) than three styles in the list of available styles.

Jeremy Wootten added 2 commits November 27, 2019 11:04
# Conflicts fixed:
#	data/Application.css
#	src/Widgets/HeaderBar.vala
@jeremypw
Copy link
Copy Markdown
Collaborator

jeremypw commented Nov 27, 2019

Last commit lays out buttons evenly if > 3 styles. Also applies actual style to the background and text of the button. Focuses the current style button on opening menu.

Styling details for example only. To be specified by UI team.

@jeremypw jeremypw marked this pull request as draft April 28, 2021 19:19
@jeremypw
Copy link
Copy Markdown
Collaborator

@davidmhewitt Converting to draft as has conflicts, unaddressed issues and no recent activity. Please feel free to close or reopen for review after fixing conflicts as desired.

@jeremypw jeremypw deleted the dynamic-stylebuttons branch December 14, 2021 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Split style scheme GSettings into light and dark

4 participants