Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Oowoosh0
Copy link

@Oowoosh0 Oowoosh0 commented May 11, 2022

Fixes #902

Adds a follow system style toggle to the preference menu as mentioned in #902
Default is off, if enabled Code follows the global dark style setting.

It uses solarized-light for syntax highlighting if follow system style is set to true and system style is set to default. So currently there is no way to use the classic theme for syntax highlighting while having follow system style enabled. But to make that possible one would have to separate the choice of color scheme for syntax highlighting and gtk dark style.

@jeremypw
Copy link
Collaborator

FollowSystemStyleSwitch

There needs to be some padding between the new switch and it label.

Copy link
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.

The code looks clean to me and works as expected. Just some padding required between the switch and the label. Needs input from design team as well.

@jeremypw
Copy link
Collaborator

jeremypw commented Jul 8, 2022

Although the UI closely follows the corresponding Terminal PR (#666) there is a significant difference in behaviour. Terminal persists the user preference when the "follow-system-style" is toggled - i.e. the original appearance is restored when the switch is toggled off. This PR does not persist the original setting but overwrites it. I think Terminal's behaviour is better.

@danirabbit
Copy link
Member

Closing since this has conflicts and OP hasn't responded in 2 months

@danirabbit danirabbit closed this Jul 13, 2022
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.

Provide an auto dark style option

3 participants