File tree 11 files changed +3588
-180
lines changed
11 files changed +3588
-180
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ A simple system tray to display the Razer mouse battery.
6
6
7
7
You can specify the mouse and adjust the frequency(minutes) of battery updates using the slider.
8
8
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 " >
10
10
11
11
## For user
12
12
@@ -19,7 +19,7 @@ zip: faster startup but bigger
19
19
** Note** :
20
20
21
21
- 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 `
23
23
- To enable it to start with windows, place the file or a shortcut in the startup folder
24
24
25
25
## For dev
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ exe = EXE(
37
37
target_arch = None ,
38
38
codesign_identity = None ,
39
39
entitlements_file = None ,
40
- icon = 'ui/imgs/ icon.ico' ,
40
+ icon = 'icon.ico' ,
41
41
)
42
42
coll = COLLECT (
43
43
exe ,
@@ -47,5 +47,5 @@ coll = COLLECT(
47
47
strip = False ,
48
48
upx = True ,
49
49
upx_exclude = [],
50
- name = 'razerBattery ' ,
50
+ name = 'Rebt ' ,
51
51
)
File renamed without changes.
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ exe = EXE(
28
28
a .zipfiles ,
29
29
a .datas ,
30
30
[],
31
- name = 'razerBattery ' ,
31
+ name = 'Rebt ' ,
32
32
debug = False ,
33
33
bootloader_ignore_signals = False ,
34
34
strip = False ,
@@ -41,5 +41,5 @@ exe = EXE(
41
41
target_arch = None ,
42
42
codesign_identity = None ,
43
43
entitlements_file = None ,
44
- icon = 'ui/imgs/ icon.ico' ,
44
+ icon = 'icon.ico' ,
45
45
)
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ class RazerStorage():
302
302
303
303
def __init__ (self ):
304
304
self .config = configparser .ConfigParser ()
305
- self .filename = "razerbattery .ini"
305
+ self .filename = "rebt .ini"
306
306
self .path = os .path .join (Path .home (),self .filename )
307
307
self .config ["DEFAULT" ] = {}
308
308
self .setInterval (15 )
Original file line number Diff line number Diff line change @@ -20,29 +20,29 @@ def __init__(self):
20
20
self .half = QIcon (':/resource/imgs/half.svg' )
21
21
self .low = QIcon (':/resource/imgs/low.svg' )
22
22
self .empty = QIcon (':/resource/imgs/empty.svg' )
23
- self .defaultIcon = QIcon (':/resource/imgs/icon.ico ' )
23
+ self .defaultIcon = QIcon (':/resource/imgs/icon.png ' )
24
24
self .curIcon = self .defaultIcon
25
25
self .clickCount = 0
26
26
27
27
# Init System tray
28
28
self .tray = QSystemTrayIcon (self )
29
- self .tray .setIcon (self .curIcon )
29
+ self .tray .setIcon (self .defaultIcon )
30
30
self .tray .activated .connect (self .trigger )
31
31
self .tray .setVisible (True )
32
32
try :
33
33
self .rz = Razer ()
34
34
self .minutes = self .rz .config .getDefault (
35
35
"interval" ) # refresh interval
36
36
except RuntimeError as e :
37
- self .tray .showMessage ("Error" , str (e ), self .curIcon )
37
+ self .tray .showMessage ("Error" , str (e ), self .defaultIcon )
38
38
time .sleep (4 )
39
39
sys .exit (0 )
40
40
41
41
if self .rz .firstRun :
42
42
self .tray .showMessage (
43
43
"Detected" ,
44
44
self .rz .config .getDefault ("name" ).replace ("_" , " " ),
45
- self .curIcon )
45
+ self .defaultIcon )
46
46
# Popup window Properties
47
47
self .window_width = 400
48
48
self .window_height = 260
Original file line number Diff line number Diff line change 5
5
<file>imgs/empty.svg</file>
6
6
<file>imgs/full.svg</file>
7
7
<file>imgs/half.svg</file>
8
- <file>imgs/icon.ico </file>
8
+ <file>imgs/icon.png </file>
9
9
<file>imgs/low.svg</file>
10
10
<file>imgs/most.svg</file>
11
11
<file>imgs/mouse.png</file>
You can’t perform that action at this time.
0 commit comments