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

Option ‘Pharo Light’ for setting ‘User interface theme’ cannot be saved to disk #16797

Open
Rinzwind opened this issue Jun 22, 2024 · 1 comment

Comments

@Rinzwind
Copy link
Contributor

Scenario:

  • Using Pharo Launcher, create and launch a new Pharo 13 image
  • In the Settings Browser, change ‘User interface theme’ from ‘DarkBlue’ to ‘Pharo Light’
  • Open a context menu on the setting and select ‘Save to disk’ (1.png)
  • Close the image and delete it in Pharo Launcher
  • Create and launch another new Pharo 13 image

The new image unexpectedly does not apply the ‘Pharo Light’ theme (2.png).

Version used: Pharo 13 build 106.

1.png:
1

2.png:
2

@Rinzwind
Copy link
Contributor Author

This is because the setting value doesn’t actually get saved: it gets filtered out in #store on SettingsStonWriter because ‘Pharo Light’ is the default value.

The following should probably all use the same theme:

UITheme class >> standardThemeClass [
^ PharoLightTheme
]

^Current ifNil: [
Current := PharoLightTheme newDefault.
Current ]

default: (Smalltalk at: #PharoLightTheme);

PharoLightTheme beCurrent.

DarkBlueTheme beCurrent.

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

1 participant