Skip to content

Commit 97eaf0d

Browse files
committed
Restore mouse style
1 parent afad12b commit 97eaf0d

5 files changed

Lines changed: 39 additions & 0 deletions

File tree

biglinux-livecd/usr/share/biglinux/livecd/ui/app_window.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ def _add_step_button(self, box, step_info):
182182
button.connect("clicked", self._on_step_button_clicked, step_info["name"])
183183
button.add_css_class("flat")
184184

185+
try:
186+
cursor = Gdk.Cursor.new_from_name("pointer", None)
187+
button.set_cursor(cursor)
188+
except Exception:
189+
pass
190+
185191
step_info["button"] = button
186192
if step_info["name"] == "language":
187193
step_info["img"] = img

biglinux-livecd/usr/share/biglinux/livecd/ui/desktop_view.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ def create_item_gobject(self, name: str) -> GObject.Object:
3838
def create_item_widget(self, item: DesktopListItem):
3939
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=6)
4040
box.set_can_focus(True)
41+
try:
42+
cursor = Gdk.Cursor.new_from_name("pointer", None)
43+
box.set_cursor(cursor)
44+
except Exception:
45+
pass
4146

4247
if os.path.exists(item.image_path):
4348
try:

biglinux-livecd/usr/share/biglinux/livecd/ui/keyboard_view.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ def _create_layout_child(self, name, layout_id):
132132
css_classes=["keyboard-item-card"],
133133
)
134134

135+
try:
136+
cursor = Gdk.Cursor.new_from_name("pointer", None)
137+
box.set_cursor(cursor)
138+
except Exception:
139+
pass
140+
135141
label = Gtk.Label(label=name)
136142
label.add_css_class("title-2")
137143
box.append(label)

biglinux-livecd/usr/share/biglinux/livecd/ui/language_view.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,12 @@ def _on_factory_setup(self, factory, list_item):
186186
root_box.append(content_box)
187187
list_item.set_child(root_box)
188188

189+
try:
190+
cursor = Gdk.Cursor.new_from_name("pointer", None)
191+
root_box.set_cursor(cursor)
192+
except Exception:
193+
pass
194+
189195
motion_controller = Gtk.EventControllerMotion.new()
190196
motion_controller.connect("motion", self._on_mouse_motion_item, list_item)
191197
root_box.add_controller(motion_controller)

biglinux-livecd/usr/share/biglinux/livecd/ui/theme_view.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ def _retranslate_ui(self):
106106

107107
def _create_jamesdsp_card(self, parent_box):
108108
audio_card = Gtk.Box(css_classes=["settings-card"])
109+
try:
110+
cursor = Gdk.Cursor.new_from_name("pointer", None)
111+
audio_card.set_cursor(cursor)
112+
except Exception:
113+
pass
109114
parent_box.append(audio_card)
110115

111116
content = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=15)
@@ -143,6 +148,11 @@ def _create_jamesdsp_card(self, parent_box):
143148

144149
def _create_contrast_card(self, parent_box):
145150
contrast_card = Gtk.Box(css_classes=["settings-card"])
151+
try:
152+
cursor = Gdk.Cursor.new_from_name("pointer", None)
153+
contrast_card.set_cursor(cursor)
154+
except Exception:
155+
pass
146156
parent_box.append(contrast_card)
147157

148158
content = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=15)
@@ -204,6 +214,12 @@ def create_item_widget(self, item: ThemeListItem):
204214
outer_box.set_hexpand(True)
205215
outer_box.set_vexpand(True)
206216

217+
try:
218+
cursor = Gdk.Cursor.new_from_name("pointer", None)
219+
outer_box.set_cursor(cursor)
220+
except Exception:
221+
pass
222+
207223
if os.path.exists(item.image_path):
208224
try:
209225
pixbuf = GdkPixbuf.Pixbuf.new_from_file(item.image_path)

0 commit comments

Comments
 (0)