[Interface] Address hover panel review findings

This commit is contained in:
Lukas Brübach 2026-11-02 10:17:40 +01:00 • committed by Lukas Brübach
parent 6b636baa60
commit 9fa6c06601
10 changed files with 137 additions and 29 deletions

View file

@ -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

View file

@ -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;