mirror of
https://github.com/LIV2/amiberry.git
synced 2025-12-06 06:32:45 +00:00
* enhancement: Add new GUI panel, for handling GUI Themes * Merged preview into gui-themes * add more widgets on panel * replaced textfields with sliders * refactor: optimize PanelThemes Remove duplicate code, simplify and optimize * refactor: further optimize PanelThemes * enhancement: added color box in PanelThemes * refactor: Themes are now external files, not in amiberry.conf anymore - Move themes outside of amiberry.conf - only the theme name remains in amiberry.conf, which points to the filename to use. The default is "default.cfg" and it will be created on startup, if it's missing, with the default theme values. - added "themes" directory and automatic creation of it on startup, if missing. The location is under XDG_DATA_HOME (~/.local/share/amiberry/themes by default) - refactored code, themes are now loaded during the prefs_to_gui stage - added functions for loading/saving themes to filenames * refactor: load a fallback font if the theme one wasn't found - Fallback to a standard system font, if the theme one wasn't found - Enable anti-alias for GUI font - Create default theme file if it's missing - Added themes dropdown in GUI * don't need the extra slash * refactor: rename theme extension to .theme, load one on startup - Changed .cfg to .theme for themes - Load the selected theme on startup - Set the defaults if the theme is missing a font name * refactor: rename textbox_background_color to background_color * feat: added ability to set Global widget colors * bugfix: SelectFile didn't work when creating new files * refactor: rename default theme to Default.theme * added Save As option in Themes * doc: improved help text in Themes panel * added some navigation for the Themes panel Sliders are not included, as they don't have unique IDs yet