Skip to content

Commit

Permalink
fix: enlarge menu_button to improve ux #254
Browse files Browse the repository at this point in the history
  • Loading branch information
dynobo committed Mar 14, 2023
1 parent 04b0d42 commit b9572c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions normcap/gui/menu_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
background: qradialgradient(
cx: 0.5, cy: 0.5,
fx: 0.5, fy: 0.5,
radius: 0.5,
stop: 0 rgba(0,0,0,0) stop: 0.25 rgba(255,255,255,80) stop: 0.95 rgba(0,0,0,0)
radius: 0.55,
stop: 0 rgba(0,0,0,0) stop: 0.25 rgba(255,255,255,120) stop: 0.95 rgba(0,0,0,0)
);
}
QToolButton::menu-indicator { image: none; }
Expand Down Expand Up @@ -85,11 +85,11 @@ def __init__(
self.has_language_manager = language_manager

self.setCursor(QtCore.Qt.CursorShape.ArrowCursor)
self.setFixedSize(38, 38)
self.setFixedSize(44, 44)
self.setToolButtonStyle(QtCore.Qt.ToolButtonStyle.ToolButtonIconOnly)

self.setIcon(QtGui.QIcon(":settings"))
self.setIconSize(QtCore.QSize(26, 26))
self.setIconSize(QtCore.QSize(32, 32))
self.setPopupMode(QtWidgets.QToolButton.ToolButtonPopupMode.InstantPopup)
self.setAutoRaise(True)

Expand Down

0 comments on commit b9572c3

Please sign in to comment.