Commit graph

111 commits

Author SHA1 Message Date
av-dx
751490d82c GUI: Invalidate visible grid when toggling groups 2021-11-12 14:46:34 +01:00
av-dx
c2999c09a2 GUI: Display fold indicator within header bounds 2021-11-12 14:46:34 +01:00
av-dx
27de66dbf6 GUI: Add hor. padding to row of game entries 2021-11-12 14:46:34 +01:00
av-dx
46c804986d GUI: Add group header formatting to grid view 2021-11-12 14:46:34 +01:00
av-dx
26e16916fe GUI: Add popup to select grouping method in grid view 2021-11-12 14:46:34 +01:00
av-dx
0c59bb0801 GUI: Find the last visible item via binary search
Store last visible item instead of an estimate of total items on screen
2021-11-12 14:46:34 +01:00
av-dx
449b18484b GUI: Handle empty _gridItems case when assigning entries 2021-11-12 14:46:34 +01:00
av-dx
c19fb00a15 GUI: Proper scaling of indicator triangle on lowres theme 2021-11-12 14:46:34 +01:00
av-dx
01030ab10f GUI: Add variables for grid padding 2021-11-12 14:46:34 +01:00
av-dx
4674cfa838 GUI: Move tray icon assignment to reflowLayout() 2021-11-12 14:46:34 +01:00
av-dx
677a752709 JANITORIAL: Fix build errors on --disable-c++11 2021-11-12 14:46:34 +01:00
av-dx
4559ad8f90 GUI: Move variable declaration to the initialization 2021-11-12 14:46:34 +01:00
av-dx
142759bf31 GUI: Dynamic height of grid entries based on title size 2021-11-12 14:46:34 +01:00
av-dx
79a8ca9710 GUI: Move calculation of entry sizes into a function 2021-11-12 14:46:34 +01:00
av-dx
c9c212ab9a GUI: Fix wrong comparison of _entriesPerPage 2021-11-12 14:46:34 +01:00
av-dx
72db693a3d GUI: Draw group headers in the grid as highlighted 2021-11-12 14:46:34 +01:00
av-dx
477407f14c JANITORIAL: Formatting fixes 2021-11-12 14:46:34 +01:00
av-dx
0ef92b04bb GUI: Fix multiline title display 2021-11-12 14:46:34 +01:00
av-dx
cb96b2da1c GUI: Initialise _itemsPerRow as 0 2021-11-12 14:46:34 +01:00
av-dx
a6928f6baf GUI: Add toggleGroups() and call it on clicking headers 2021-11-12 14:46:34 +01:00
av-dx
fb9c232f25 GUI: Get size and position of grid item from GridItemInfo 2021-11-12 14:46:34 +01:00
av-dx
6c2fdec8a8 GUI: Test grouping (not rendered) 2021-11-12 14:46:34 +01:00
av-dx
24e82ddd42 GUI: Change _visibleEntries into a list of pointers 2021-11-12 14:46:34 +01:00
av-dx
18066e3f77 GUI: Change _selectedEntry from int to GridItemInfo * 2021-11-12 14:46:34 +01:00
av-dx
7de105b3f8 GUI: Make use of layout variables for scrollbar size 2021-11-12 14:46:34 +01:00
av-dx
5eafa9d562 GUI: Partially revert 86564c8 2021-11-12 14:46:34 +01:00
av-dx
2942c54abe GUI: Add isHeader bool to GridItemInfo 2021-11-12 14:46:34 +01:00
av-dx
7fc050a084 GUI: Fix unnecessary negation of _scrollPos 2021-11-12 14:46:34 +01:00
av-dx
b5146d814b GUI: Use "iconspath" config instead of "iconpath"
"iconspath" was already being used by the taskbar to display icons.
2021-11-12 14:46:34 +01:00
av-dx
7375af8c59 GUI: Remove placeholder values in scrollbar initialization 2021-11-12 14:46:34 +01:00
av-dx
6d256a4b44 GUI: Don't continue when PNGDecoder fails to load file 2021-11-12 14:46:34 +01:00
av-dx
dda3c8f342 JANITORIAL: Improve readability of code in GridItemTray() 2021-11-12 14:46:34 +01:00
av-dx
4ab39e81b1 JANITORIAL: Improve readability of code in drawWidget() 2021-11-12 14:46:34 +01:00
av-dx
8805365b59 GUI: Removed unnecessary variable assignments 2021-11-12 14:46:34 +01:00
av-dx
dac2f68e2f GUI: Add comments 2021-11-12 14:46:34 +01:00
av-dx
33b5694a4e JANITORIAL: Formatting fixes 2021-11-12 14:46:34 +01:00
av-dx
85fa7a26ff JANITORIAL: Protected few GridWidget members as appropriate 2021-11-12 14:46:34 +01:00
av-dx
e8bee56f9a JANITORIAL: Formatting fixes 2021-11-12 14:46:34 +01:00
av-dx
bb07567e26 GUI: Limit the scale of flag and platform to thumbWidth 2021-11-12 14:46:34 +01:00
av-dx
79b2d43cbf GUI: Use platform code instead of abbrev 2021-11-12 14:46:34 +01:00
av-dx
752e4414c8 GUI: Create subdirs for flags and platforms in icon dir 2021-11-12 14:46:34 +01:00
av-dx
c2ebb2b144 GUI: Use transparency for tray button icons 2021-11-12 14:46:34 +01:00
av-dx
627e9457c4 JANITORIAL: Minor formatting fixes 2021-11-12 14:46:34 +01:00
av-dx
c9b8cb1a0e GUI: Replace enum-indexed arrays with HashMaps 2021-11-12 14:46:34 +01:00
av-dx
828361b84d GUI: Store language as Common::Language in GridItemInfo 2021-11-12 14:46:34 +01:00
av-dx
96e563b752 GUI: Load platforms from g_platforms[] list 2021-11-12 14:46:34 +01:00
av-dx
5699eb1e23 GUI: Remove leftover warnings 2021-11-12 14:46:34 +01:00
av-dx
6ca4c3f086 GUI: Fix handling of unavailable platform icons 2021-11-12 14:46:34 +01:00
av-dx
6ce75d06f4 GUI: Add config option for icons' path 2021-11-12 14:46:34 +01:00
av-dx
1754333308 GUI: Replace breakText with Font::wordWrapText() 2021-11-12 14:46:34 +01:00