Skip to content

Commit

Permalink
Deprecate the theme methods that ignore user preference
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jul 9, 2021
1 parent d3d7b59 commit 8619fce
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions theme/theme.go
Expand Up @@ -248,15 +248,19 @@ func DefaultTheme() fyne.Theme {
return defaultTheme
}

// LightTheme defines the built in light theme colors and sizes
// LightTheme defines the built in light theme colors and sizes.
//
// Deprecated: This method ignores user preference and should not be used, it will be removed in v3.0.
func LightTheme() fyne.Theme {
theme := &builtinTheme{variant: VariantLight}

theme.initFonts()
return theme
}

// DarkTheme defines the built in dark theme colors and sizes
// DarkTheme defines the built in dark theme colors and sizes.
//
// Deprecated: This method ignores user preference and should not be used, it will be removed in v3.0.
func DarkTheme() fyne.Theme {
theme := &builtinTheme{variant: VariantDark}

Expand Down

0 comments on commit 8619fce

Please sign in to comment.