mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-09 11:48:13 +08:00
change config UseSystemFonts to CustomFonts, allow user to specify which font to use
This commit is contained in:
@@ -35,8 +35,8 @@ func Initialize() {
|
||||
logger = global.Logger.WithPrefix("GUI")
|
||||
black_magic()
|
||||
logger.Info("Initializing GUI")
|
||||
if !config.General.UseSystemFonts {
|
||||
_ = os.Setenv("FYNE_FONT", config.GetAssetPath("msyh.ttc"))
|
||||
if config.General.CustomFonts != "" {
|
||||
_ = os.Setenv("FYNE_FONT", config.GetAssetPath(config.General.CustomFonts))
|
||||
}
|
||||
App = app.NewWithID(config.ProgramName)
|
||||
//App.Settings().SetTheme(&myTheme{})
|
||||
|
||||
Reference in New Issue
Block a user