Skip to content

Commit 2dfca6a

Browse files
committed
refactor(wifi): update cursor style for better UX
- Set cursor to pointing hand for the main widget container. - Removed redundant cursor setting from label creation.
1 parent 2b773d2 commit 2dfca6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/widgets/yasb/wifi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def __init__(
6262
self._padding = container_padding
6363
self._label_shadow = label_shadow
6464
self._container_shadow = container_shadow
65+
self.setCursor(Qt.CursorShape.PointingHandCursor)
6566
# Construct container
6667
self._widget_container_layout = QHBoxLayout()
6768
self._widget_container_layout.setSpacing(0)
@@ -141,7 +142,6 @@ def process_content(content: str, is_alt: bool = False, is_ethernet: bool = Fals
141142
label = QLabel(part)
142143
label.setProperty("class", "label alt" if is_alt else "label")
143144
label.setAlignment(Qt.AlignmentFlag.AlignCenter)
144-
label.setCursor(Qt.CursorShape.PointingHandCursor)
145145
add_shadow(label, self._label_shadow)
146146
self._widget_container_layout.addWidget(label)
147147
widgets.append(label)

0 commit comments

Comments
 (0)