Commit Graph

51 Commits (c6666a388f3d5b1c134e7a8f3a968b42e64b6f92)

Author SHA1 Message Date
Ariel Nogueira Kovaljski c6666a388f
Qt: Show tooltip when adjusting icon/cover scale (#3563)
* Qt: Show tooltip when adjusting icon/cover scale

* Qt: removed tooltip on hover, handle zoom via View menu and more

- Tooltip only shows when changing the scale;
- "View > Zoom In/Out" also works for the list view;
- Grid View scale percentage display value adjusted (10%-200%);
- Added translation support for the scale tooltip;
1 month ago
Stenzek f0ff520a9d
GameList: Improve custom title cover handling
Prefer the custom title path over the serial if one is present.

Also use sanitized names.
1 month ago
Stenzek aca4e6be42
Qt: Use Roboto for cover captions too
And don't do a full refresh when scale changes.
2 months ago
Stenzek 5cd8444ad6
Qt: Consider title when sizing icon column 2 months ago
Stenzek 7e04671644
GameList: Use fixed size for icon column
Fixes sluggish icon size change and speeds up startup since we
no longer need to load every icon.
2 months ago
Stenzek 393724abdc
Qt: Save one lookup when loading covers 2 months ago
Stenzek 0867decc87
Qt: Use widget-local device pixel ratio for game list
Fixes blurry icons in mixed DPI environments.

At least on Windows.
2 months ago
Stenzek 5f8716a9f0
Qt: Simplify icon scaling
- Merge the two sliders into one.
- Scale the type icons as well as the game icons.
- Remove redundant slots.
2 months ago
Stenzek 48ac353210
Qt: Disable game list toolbar when no games found 2 months ago
Davide Pesavento d499d8e2d8 Qt: Avoid a full reset when toggling show cover titles / localized titles 2 months ago
Ariel Nogueira Kovaljski b0dd909cf8
Qt: Resizable game list icons (#3539)
* Qt: Sharp Bilinear scaling for gamelist icons

* Single function for Sharp Bilinear scaling of icons

* Qt: Resizable game list icons [PoC]

* Fixed dynamic row scaling and size slider

* fix some duplicate lines

* made scaleMemoryCardIconWithSharpBilinear inline and added constant for icon padding

* removed resizeEvent from GameListListView
2 months ago
Stenzek 8bfc31a59c
GameDatabase: Refactor disc sets
Store the sets in a separate file, and use pointers to reference instead
of string matching. This allows us to use the unsuffixed display names.
2 months ago
Davide Pesavento de2d6d1aa0
Qt: More accurate game list column width estimation (#3505)
Three main changes:
1. Use the pixel metrics of the style instead of hardcoded values.
2. Account for the potential sort indicator in the column header.
3. In the two "Size" columns, the largest numerical value does not
   necessarily result in the widest text string, so just use the
   value 8888.88 to estimate the width (we assume that 8 is the
   widest digit, which is true for many proportional fonts).
3 months ago
Stenzek 73f326cd75
Qt: Use header resize mode for game list column widths
Simpler code, no need for workarounds in showEvent() either.
3 months ago
Stenzek a080228ee5
Qt: Don't reset model for every scanned game
Make the UI a little more responsive.
3 months ago
Davide Pesavento 69da2df8e9 Make all single-argument constructors explicit 3 months ago
Davide Pesavento 2f13538cc0 Qt: Fix game list icons when toggling disc set merging
Also, make sure we call beginFilterChange() in the proxy model
as mentioned in the Qt docs.
3 months ago
Davide Pesavento 21f44b3782 Qt: Refactor GameListWidget tool buttons and corresponding menu actions 3 months ago
Stenzek bf4a89e82e
Qt: Use GameList::FormatTimespan()
No point duplicating the logic since the core can handle
plural translations now.
4 months ago
Stenzek 0a0379f31f
Qt: Make game list scrollbar only visible as-needed 5 months ago
Stenzek 95e085584c
Qt: Move list/grid setup to subclasses 5 months ago
Stenzek 22089e9b75
Qt: Improve game grid layout calculations
Use grid size instead of icon size/spacing.

Fixes the number of columns changing when different items are visible.

Also restores the old behaviour of dynamic scroll bar visibility.
5 months ago
Stenzek 426cdd1611
Qt: Center icons in grid view 7 months ago
Stenzek 9020959511
Qt: Add game list background function 7 months ago
Stenzek 830842891e
GameList: Rename max value enum for consistency 7 months ago
Stenzek a0fef2d5ab
Qt: Merge gamelistmodel.cpp and gamelistwidget.cpp
They're constantly referring to each other.
8 months ago
Stenzek 0e3668a7bb
GameList: Show achievement information in game list 9 months ago
Stenzek 6785285f31
Qt: Fix game list toolbar/view menu desync 10 months ago
Stenzek 67041d217b
Qt: Improve shortcuts
- CTRL/+, CTRL/- no longer show in menu for zooming, but still activate.
- CTRL+O will open a new disc/game from file.
- F5 will refresh the game list (i.e. scan for new games).
- F3/CTRL+F will send focus to the game list search box.
- Pressing Enter in the search box will send focus to the first game
  list row.
- ALT+ENTER in the game list will open Game Properties.
11 months ago
Stenzek 7f4e5d55db
Misc: Update copyright headers 1 year ago
Stenzek 9a626caad9
Qt: Reduce game list jank after shutting down VM
Prevents progress bar briefly appearing, and the list scrolling to the
top when you exit a game.
1 year ago
Stenzek 9143116616
Qt: Show memory card icons in game list
You can disable it if you really hate it.
1 year ago
Stenzek ccb76d1451
GameList: Add custom title/regions
Largely inspired by https://github.com/PCSX2/pcsx2/pull/9330, but almost
entirely rewritten.
1 year ago
Stenzek 277147199e
Qt: Fix checked state on startup for disc merging 1 year ago
Stenzek 1adaea9005
GameList: Merge multi-disc games 1 year ago
Stenzek dd1a00674d Qt: PCSX2 UI fix backports 2 years ago
Stenzek bb60170d9a Move frontend-common to util/core 2 years ago
Connor McLaughlin 8c7a192128 Misc: Add copyright/license statement to applicable files
Should've did this in the beginning.
3 years ago
Connor McLaughlin 5510f66a12 Qt: Support changing theme without reopening window 3 years ago
Connor McLaughlin b42b5501f6 UI: Massive revamp, new features and improvements 3 years ago
Connor McLaughlin 56c511b45c Qt: Add Game Properties to view menu (for running game) 5 years ago
Connor McLaughlin e2a4129c30 Qt: Fix hitting enter on game list not launching game 5 years ago
Connor McLaughlin 692c2d4aff Qt: Add cover refresh menu option 5 years ago
Connor McLaughlin 43b0d84a1d Qt: Implement game grid/cover view 5 years ago
Connor McLaughlin b405c01652 Qt: Save settings for column visibility/sorting in game list 6 years ago
Connor McLaughlin 5c0660744a Qt: Implement "File Title" column and toggling in game list 6 years ago
Connor McLaughlin 69f03959aa Qt: Implement context menu in game list 6 years ago
Connor McLaughlin 82b4229f1b GameList: Move entry to global scope so it can be forward declared 6 years ago
Connor McLaughlin 67710ca184 Qt: Add a signal when the game list selection is changed 6 years ago
Connor McLaughlin 2611e64459 Qt: Implement game list sorting 6 years ago