mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-11 20:43:25 -08:00
[Interface] Address hover panel review findings
This commit is contained in:
parent
6b636baa60
commit
9fa6c06601
10 changed files with 137 additions and 29 deletions
|
|
@ -70,12 +70,16 @@ bool CardsDisplaySettings::getScaleCards() const
|
|||
|
||||
int CardsDisplaySettings::getHoverPanelTrigger() const
|
||||
{
|
||||
return getValue("hoverPanelTrigger", QString(), QString(), 0).toInt();
|
||||
// Off by default: the panel is new, so it is opt-in.
|
||||
return getValue("hoverPanelTrigger", QString(), QString(), static_cast<int>(HoverPanelTriggerOff)).toInt();
|
||||
}
|
||||
|
||||
int CardsDisplaySettings::getHoverZoomTrigger() const
|
||||
{
|
||||
return getValue("hoverZoomTrigger", QString(), QString(), 0).toInt();
|
||||
// Off by default: the smooth hover zoom is opt-in. With no trigger configured,
|
||||
// hovering keeps the historical 1.1x scale (AbstractCardItem::setHoverHighlighted)
|
||||
// instead of the smooth zoom to the hover panel size.
|
||||
return getValue("hoverZoomTrigger", QString(), QString(), static_cast<int>(HoverPanelTriggerOff)).toInt();
|
||||
}
|
||||
|
||||
bool CardsDisplaySettings::getHoverPanelDoubleConfirm() const
|
||||
|
|
|
|||
|
|
@ -22,7 +22,9 @@ public:
|
|||
HoverPanelTriggerHover = 0,
|
||||
HoverPanelTriggerRightClick = 1,
|
||||
HoverPanelTriggerWheel = 2,
|
||||
HoverPanelTriggerShortcut = 3
|
||||
HoverPanelTriggerShortcut = 3,
|
||||
/// Never fires. The hover zoom and panel are opt-in, so this is their default.
|
||||
HoverPanelTriggerOff = 4
|
||||
};
|
||||
|
||||
[[nodiscard]] bool getDisplayCardNames() const override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue