Skip to content

Commit fef2834

Browse files
committed
Add authors for existing themes, and display it on Configuration Wizard
1 parent 512333e commit fef2834

File tree

22 files changed

+52
-0
lines changed

22 files changed

+52
-0
lines changed

configure.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ def __init__(self):
155155
self.theme_preview = ttk.Label(self.window)
156156
self.theme_preview.place(x=10, y=10)
157157

158+
self.theme_author = ttk.Label(self.window, foreground='#a3a3a3')
159+
158160
sysmon_label = ttk.Label(self.window, text='Display configuration', font='bold')
159161
sysmon_label.place(x=320, y=0)
160162

@@ -252,6 +254,10 @@ def load_theme_preview(self):
252254
self.theme_preview_img = ImageTk.PhotoImage(theme_preview)
253255
self.theme_preview.config(image=self.theme_preview_img)
254256

257+
theme_data = get_theme_data(self.theme_cb.get())
258+
self.theme_author.config(text="Author: " + theme_data.get('author', 'unknown'))
259+
self.theme_author.place(x=10, y=self.theme_preview_img.height() + 15)
260+
255261
def load_config_values(self):
256262
with open("config.yaml", "rt", encoding='utf8') as stream:
257263
self.config, ind, bsi = ruamel.yaml.util.load_yaml_guess_indent(stream)

res/themes/3.5inchTheme2/theme.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
author: "@mathoudebine"
3+
24
display:
35
DISPLAY_ORIENTATION: portrait
46
DISPLAY_RGB_LED: 0, 0, 255

res/themes/5inchTheme2/theme.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
author: "@alexwbaule"
3+
24
display:
35
DISPLAY_SIZE: 5"
46
DISPLAY_ORIENTATION: portrait

res/themes/5inchTheme2Radial/theme.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
author: "@arthurferrai"
3+
24
display:
35
DISPLAY_SIZE: 5"
46
DISPLAY_ORIENTATION: portrait

res/themes/BigClock/theme.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
author: "@RussNelson"
3+
24
display:
35
DISPLAY_ORIENTATION: landscape
46
DISPLAY_RGB_LED: 255, 0, 0

res/themes/CyanTheme/theme.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
---
2+
author: "@mathoudebine"
3+
24
display:
35
DISPLAY_SIZE: 5"
46
DISPLAY_ORIENTATION: portrait
57
DISPLAY_RGB_LED: 0, 0, 255
8+
69
static_text:
710
GPU_MODEL:
811
TEXT: RTX3080TI
@@ -28,13 +31,15 @@ static_text:
2831
FONT_SIZE: 25
2932
FONT_COLOR: 255, 255, 255
3033
BACKGROUND_IMAGE: background.png
34+
3135
static_images:
3236
BACKGROUND:
3337
PATH: background.png
3438
X: 0
3539
Y: 0
3640
WIDTH: 480
3741
HEIGHT: 800
42+
3843
STATS:
3944
CPU:
4045
PERCENTAGE:

res/themes/Cyberpunk-net/theme.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
author: "@amiltonjr"
3+
24
display:
35
DISPLAY_ORIENTATION: portrait
46
DISPLAY_RGB_LED: 255, 255, 0
@@ -59,6 +61,7 @@ static_text:
5961
FONT_SIZE: 15
6062
FONT_COLOR: 255, 239, 8
6163
BACKGROUND_IMAGE: background.png
64+
6265
STATS:
6366
CPU:
6467
PERCENTAGE:

res/themes/Cyberpunk/theme.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
author: "@mathoudebine"
3+
24
display:
35
DISPLAY_ORIENTATION: portrait
46
DISPLAY_RGB_LED: 255, 255, 0

res/themes/DragonBall5inch/theme.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
author: "@mathoudebine"
3+
24
display:
35
DISPLAY_SIZE: 5"
46
DISPLAY_ORIENTATION: landscape

res/themes/Landscape15Grid/theme.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
author: "@mathoudebine"
3+
24
display:
35
DISPLAY_SIZE: 5"
46
DISPLAY_ORIENTATION: landscape

0 commit comments

Comments
 (0)