13 Commits

Author SHA1 Message Date
Dimitris Panokostas
2c39559952
Reduce compiler warnings (#1566)
* refactor: fix compiler and clang-tidy warnings
* minor code improvements and modernization
* refactor: fix sprintf is deperecated warnings
* refactor: convert gfxboard encoding to UTF-8
2025-01-03 16:54:58 +01:00
Dimitris Panokostas
62fa27e2a2
refactor: Fix compiler warnings and sync guisan with upstream changes 2024-11-13 19:56:56 +01:00
Dimitris Panokostas
0de7f3a83c
1477 implement latest guisan changes (#1504)
* Merge latest Guisan updates from upstream

* Added drawChildren to container

Our SelectorEntry class would not draw the children otherwise

* Add 2 pixels of height to Checkboxes, to avoid font clipping

* bugfix: Fix Dropdown scrollarea would obstruct content (fixes #1476)

* bugfix: Dropdown scroll bar would still get in the way (#1476)

* bugfix: Add 1 more pixel of padding in Textfield (fixes #1478)
2024-11-08 14:13:59 +01:00
Dimitris Panokostas
0ea2e65cab
Gui themes (#1488)
* 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
2024-10-19 17:18:02 +02:00
Dimitris Panokostas
6b16469d56
enhancement: Guisan updates
Added Text class, refactored textbox, textfield etc.
2024-09-10 16:01:39 +02:00
Dimitris Panokostas
9b0c94229a
enhancement: Guisan: improve widget help text 2024-09-05 23:16:49 +02:00
Dimitris Panokostas
d1a3403a0e
enhancement: upgrade libguisan to latest version, fix various bugs
Guisan has been getting several updates lately, improving and fixing various bugs.
Upgrading to the current version, but keeping my own improvements until I've had time to push them upstream
2024-09-04 21:46:35 +02:00
Dimitris Panokostas
bfe1574c0c
enhancement: merge updates from Preview
- GUI and Guisan updates
- RTG Harware cursor support
- OpenGL updates
- Input updates
- DraCo updates
- Audio updates
- Tablet support updates
2024-01-25 17:44:02 +01:00
Dimitris Panokostas
7f78fdc1da Updated guisan files encoding to UTF-8 2020-08-17 16:25:02 +02:00
Dimitris Panokostas
6776d9b1f3 Fixed dropdowns would cut-off bottom part of contents 2020-05-16 01:27:05 +02:00
Dimitris Panokostas
ecb56ef5be Modernized code in guisan objects, improved GUI layout 2020-05-15 00:27:51 +02:00
Dimitris Panokostas
a6c7862a26 GUI refactoring
- Removed custom UAE classes, now using only updated standard Guisan components
- Updated all Guisan widgets according to current C++ standards (modernized code)
- Fixed a few minor GUI bugs
- Improved visibility of disabled GUI objects (e.g. sliders, checkboxes, dropdowns)
2020-05-14 01:25:14 +02:00
Dimitris Panokostas
e12f430bd0 Reorganized externa library dependencies
- Added external directory
- Moved capsimg submodule into external, updated references
- Moved guisan into external, updated references
- Added libxml2 into external, updated Android.mk references
- Added libmpeg2 into external (not used yet)
2019-10-22 21:10:18 +02:00