Skip to content

Commit e529e4e

Browse files
committed
update: change icon and name
1 parent 59617e4 commit e529e4e

11 files changed

+3588
-180
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A simple system tray to display the Razer mouse battery.
66

77
You can specify the mouse and adjust the frequency(minutes) of battery updates using the slider.
88

9-
<img src="https://raw.githubusercontent.com/Maasea/RazerMouseBatteryTray/main/imags/display.png" width="250" height="250">
9+
<img src="https://raw.githubusercontent.com/Maasea/RazerMouseBatteryTray/main/imgs/display.png" width="250" height="250">
1010

1111
## For user
1212

@@ -19,7 +19,7 @@ zip: faster startup but bigger
1919
**Note**:
2020

2121
- All the file require 64-bit system, but you can build 32-bit files by referring to the `For dev`
22-
- Configuration file directory: `user/username/razerbattery.ini`
22+
- Configuration file directory: `user/username/rebt.ini`
2323
- To enable it to start with windows, place the file or a shortcut in the startup folder
2424

2525
## For dev

folder.spec

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ exe = EXE(
3737
target_arch=None,
3838
codesign_identity=None,
3939
entitlements_file=None,
40-
icon='ui/imgs/icon.ico',
40+
icon='icon.ico',
4141
)
4242
coll = COLLECT(
4343
exe,
@@ -47,5 +47,5 @@ coll = COLLECT(
4747
strip=False,
4848
upx=True,
4949
upx_exclude=[],
50-
name='razerBattery',
50+
name='Rebt',
5151
)

icon.ico

25 KB
Binary file not shown.

imags/display.png imgs/display.png

File renamed without changes.

oneFile.spec

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ exe = EXE(
2828
a.zipfiles,
2929
a.datas,
3030
[],
31-
name='razerBattery',
31+
name='Rebt',
3232
debug=False,
3333
bootloader_ignore_signals=False,
3434
strip=False,
@@ -41,5 +41,5 @@ exe = EXE(
4141
target_arch=None,
4242
codesign_identity=None,
4343
entitlements_file=None,
44-
icon='ui/imgs/icon.ico',
44+
icon='icon.ico',
4545
)

resource.py

+3,576-168
Large diffs are not rendered by default.

storage.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ class RazerStorage():
302302

303303
def __init__(self):
304304
self.config = configparser.ConfigParser()
305-
self.filename = "razerbattery.ini"
305+
self.filename = "rebt.ini"
306306
self.path = os.path.join(Path.home(),self.filename)
307307
self.config["DEFAULT"] = {}
308308
self.setInterval(15)

tool.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,29 @@ def __init__(self):
2020
self.half = QIcon(':/resource/imgs/half.svg')
2121
self.low = QIcon(':/resource/imgs/low.svg')
2222
self.empty = QIcon(':/resource/imgs/empty.svg')
23-
self.defaultIcon = QIcon(':/resource/imgs/icon.ico')
23+
self.defaultIcon = QIcon(':/resource/imgs/icon.png')
2424
self.curIcon = self.defaultIcon
2525
self.clickCount = 0
2626

2727
# Init System tray
2828
self.tray = QSystemTrayIcon(self)
29-
self.tray.setIcon(self.curIcon)
29+
self.tray.setIcon(self.defaultIcon)
3030
self.tray.activated.connect(self.trigger)
3131
self.tray.setVisible(True)
3232
try:
3333
self.rz = Razer()
3434
self.minutes = self.rz.config.getDefault(
3535
"interval") # refresh interval
3636
except RuntimeError as e:
37-
self.tray.showMessage("Error", str(e), self.curIcon)
37+
self.tray.showMessage("Error", str(e), self.defaultIcon)
3838
time.sleep(4)
3939
sys.exit(0)
4040

4141
if self.rz.firstRun:
4242
self.tray.showMessage(
4343
"Detected",
4444
self.rz.config.getDefault("name").replace("_", " "),
45-
self.curIcon)
45+
self.defaultIcon)
4646
# Popup window Properties
4747
self.window_width = 400
4848
self.window_height = 260

ui/imgs/icon.ico

-20.7 KB
Binary file not shown.

ui/imgs/icon.png

55.6 KB
Loading

ui/resource.qrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<file>imgs/empty.svg</file>
66
<file>imgs/full.svg</file>
77
<file>imgs/half.svg</file>
8-
<file>imgs/icon.ico</file>
8+
<file>imgs/icon.png</file>
99
<file>imgs/low.svg</file>
1010
<file>imgs/most.svg</file>
1111
<file>imgs/mouse.png</file>

0 commit comments

Comments
 (0)