Skip to content

Commit ef013df

Browse files
committed
背景设置功能
1 parent 48bcd42 commit ef013df

19 files changed

Lines changed: 1236 additions & 25 deletions

File tree

.github/workflows/build-unified.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -400,11 +400,11 @@ jobs:
400400
echo "**Github 镜像 下载链接**" >> ../CHANGELOG/${{ github.ref_name }}/CHANGELOG.md
401401
echo "| 镜像源 | 平台 | 支持架构 | 便携版 | 安装程序 |" >> ../CHANGELOG/${{ github.ref_name }}/CHANGELOG.md
402402
echo "| --- | --- | --- | --- | --- |" >> ../CHANGELOG/${{ github.ref_name }}/CHANGELOG.md
403-
echo "| ghfast.top | Windows | x64 | N/A | [下载 ${{ github.ref_name }}](https://ghfast.top/https://github.com/SECTL/SecRandom/releases/download/${{ github.ref_name }}/SecRandom-Windows-Setup-${{ github.ref_name }}-x64.exe) |" >> ../CHANGELOG/${{ github.ref_name }}/CHANGELOG.md
404-
echo "| ghfast.top | Windows | x64 | [下载 ${{ github.ref_name }}](https://ghfast.top/https://github.com/SECTL/SecRandom/releases/download/${{ github.ref_name }}/SecRandom-Windows-Portable-${{ github.ref_name }}-x64.exe) | N/A |" >> ../CHANGELOG/${{ github.ref_name }}/CHANGELOG.md
403+
echo "| ghproxy.sectl.top | Windows | x64 | [下载 ${{ github.ref_name }}](https://ghproxy.sectl.top/https://github.com/SECTL/SecRandom/releases/download/${{ github.ref_name }}/SecRandom-Windows-Portable-${{ github.ref_name }}-x64.zip) | [下载 ${{ github.ref_name }}](https://ghproxy.sectl.top/https://github.com/SECTL/SecRandom/releases/download/${{ github.ref_name }}/SecRandom-Windows-Setup-${{ github.ref_name }}-x64.exe) |" >> ../CHANGELOG/${{ github.ref_name }}/CHANGELOG.md
404+
echo "| ghproxy.sectl.top | Linux | amd64 | [下载 ${{ github.ref_name }}](https://ghproxy.sectl.top/https://github.com/SECTL/SecRandom/releases/download/${{ github.ref_name }}/SecRandom-Linux-AppImage-${{ github.ref_name }}-amd64.AppImage) | [下载 ${{ github.ref_name }}](https://ghproxy.sectl.top/https://github.com/SECTL/SecRandom/releases/download/${{ github.ref_name }}/SecRandom-linux-Setup-$version_no_v-amd64.deb) |" >> ../CHANGELOG/${{ github.ref_name }}/CHANGELOG.md
405+
echo "| ghfast.top | Windows | x64 | [下载 ${{ github.ref_name }}](https://ghfast.top/https://github.com/SECTL/SecRandom/releases/download/${{ github.ref_name }}/SecRandom-Windows-Portable-${{ github.ref_name }}-x64.zip) | [下载 ${{ github.ref_name }}](https://ghfast.top/https://github.com/SECTL/SecRandom/releases/download/${{ github.ref_name }}/SecRandom-Windows-Setup-${{ github.ref_name }}-x64.exe) |" >> ../CHANGELOG/${{ github.ref_name }}/CHANGELOG.md
405406
echo "| ghfast.top | Linux | amd64 | [下载 ${{ github.ref_name }}](https://ghfast.top/https://github.com/SECTL/SecRandom/releases/download/${{ github.ref_name }}/SecRandom-Linux-AppImage-${{ github.ref_name }}-amd64.AppImage) | [下载 ${{ github.ref_name }}](https://ghfast.top/https://github.com/SECTL/SecRandom/releases/download/${{ github.ref_name }}/SecRandom-linux-Setup-$version_no_v-amd64.deb) |" >> ../CHANGELOG/${{ github.ref_name }}/CHANGELOG.md
406-
echo "| gh-proxy.com | Windows | x64 | N/A | [下载 ${{ github.ref_name }}](https://gh-proxy.com/https://github.com/SECTL/SecRandom/releases/download/${{ github.ref_name }}/SecRandom-Windows-Setup-${{ github.ref_name }}-x64.exe) |" >> ../CHANGELOG/${{ github.ref_name }}/CHANGELOG.md
407-
echo "| gh-proxy.com | Windows | x64 | [下载 ${{ github.ref_name }}](https://gh-proxy.com/https://github.com/SECTL/SecRandom/releases/download/${{ github.ref_name }}/SecRandom-Windows-Portable-${{ github.ref_name }}-x64.exe) | N/A |" >> ../CHANGELOG/${{ github.ref_name }}/CHANGELOG.md
407+
echo "| gh-proxy.com | Windows | x64 | [下载 ${{ github.ref_name }}](https://gh-proxy.com/https://github.com/SECTL/SecRandom/releases/download/${{ github.ref_name }}/SecRandom-Windows-Portable-${{ github.ref_name }}-x64.zip) | [下载 ${{ github.ref_name }}](https://gh-proxy.com/https://github.com/SECTL/SecRandom/releases/download/${{ github.ref_name }}/SecRandom-Windows-Setup-${{ github.ref_name }}-x64.exe) |" >> ../CHANGELOG/${{ github.ref_name }}/CHANGELOG.md
408408
echo "| gh-proxy.com | Linux | amd64 | [下载 ${{ github.ref_name }}](https://gh-proxy.com/https://github.com/SECTL/SecRandom/releases/download/${{ github.ref_name }}/SecRandom-Linux-AppImage-${{ github.ref_name }}-amd64.AppImage) | [下载 ${{ github.ref_name }}](https://gh-proxy.com/https://github.com/SECTL/SecRandom/releases/download/${{ github.ref_name }}/SecRandom-linux-Setup-$version_no_v-amd64.deb) |" >> ../CHANGELOG/${{ github.ref_name }}/CHANGELOG.md
409409
echo "" >> ../CHANGELOG/${{ github.ref_name }}/CHANGELOG.md
410410
echo "**SHA256 校验值-请核对下载的文件的SHA256值是否正确**" >> ../CHANGELOG/${{ github.ref_name }}/CHANGELOG.md

CHANGELOG/v2.3.0-beta.1/CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ v2.3 - Shirako (砂狼白子) beta 1
55
## 🚀 主要更新
66

77
- 新增 **主题管理**,支持主题浏览、安装、卸载及管理
8-
- 新增 **置顶模式**支持UIA置顶
9-
- 新增 **UIAccess提权**自动重启生效
8+
- 新增 **背景设置**支持窗口背景色/图与亮度、支持GIF动态背景、支持透明度与模糊
9+
- 新增 **UIAccess置顶**支持在Windows 10/11下开启UIAccess置顶(主窗口/通知浮窗/浮窗)
1010
- 新增 **主窗口置顶**,基础设置支持主窗口置顶配置
1111

1212
## 💡 功能优化
1313

14-
-
14+
- 优化 **点名/抽奖界面**,统一滚动手势
1515

1616
## 🐛 修复问题
1717

1818
- 修复 **通知浮窗** 开启卡片显示后背景异常
1919

2020
## 🔧 其它变更
2121

22-
-
22+
- 新增 **SECTL镜像源**,组织自建下载镜像源([ghproxy.sectl.top](https://ghproxy.sectl.top))
2323

2424
---
2525

SRsetup.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#define MyAppName "SecRandom"
66
#define MyAppVersion "2.2.0"
77
#define MyAppPublisher "SECTL"
8-
#define MyAppURL "https://secrandom.netlify.app/"
8+
#define MyAppURL "https://secrandom.sectl.top/"
99
#define MyAppExeName "SecRandom.exe"
1010

1111
[Setup]

app/Language/modules/basic_settings.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,11 @@
307307
"combo_items": ["浅色", "深色", "跟随系统"],
308308
},
309309
"theme_color": {"name": "主题颜色", "description": "设置软件界面主题色彩"},
310+
"open_theme_management": {
311+
"name": "主题管理",
312+
"description": "打开主题管理与背景设置",
313+
"pushbutton_name": "打开",
314+
},
310315
"language": {
311316
"name": "显示语言",
312317
"description": "切换软件界面语言(重启软件后生效)",
@@ -673,6 +678,11 @@
673678
"name": "Theme color",
674679
"description": "Set the software interface theme color",
675680
},
681+
"open_theme_management": {
682+
"name": "Theme management",
683+
"description": "Open theme management and background settings",
684+
"pushbutton_name": "Open",
685+
},
676686
"language": {
677687
"name": "Display language",
678688
"description": "Switch display language (restart required)",

app/Language/modules/theme_management.py

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"title": {"name": "主题管理", "description": "管理软件的主题"},
55
"market": {"name": "市场", "description": "浏览并下载新主题"},
66
"installed": {"name": "已安装", "description": "管理已安装的主题"},
7+
"background": {"name": "背景", "description": "设置窗口背景颜色或图片"},
78
"refresh_market": {"name": "刷新市场", "description": "刷新主题市场列表"},
89
"reload_themes": {"name": "重载主题", "description": "重新加载已安装的主题"},
910
"open_folder": {
@@ -71,11 +72,64 @@
7172
"name": "取消抽奖(HTML)",
7273
"description": "取消抽奖页面使用此主题(HTML)",
7374
},
75+
"main_window_background": {
76+
"name": "主窗口背景",
77+
"description": "设置主窗口背景",
78+
},
79+
"settings_window_background": {
80+
"name": "设置窗口背景",
81+
"description": "设置设置窗口背景",
82+
},
83+
"notification_floating_window_background": {
84+
"name": "内置通知浮窗背景",
85+
"description": "设置通知浮窗背景",
86+
},
87+
"background_mode": {
88+
"name": "背景类型",
89+
"description": "选择背景类型",
90+
"combo_items": ["默认", "纯色", "图片"],
91+
},
92+
"background_color": {"name": "背景颜色", "description": "设置背景颜色"},
93+
"background_image": {"name": "背景图片", "description": "选择背景图片文件"},
94+
"background_brightness": {
95+
"name": "图片亮度",
96+
"description": "调整背景图片亮度",
97+
},
98+
"background_blur": {
99+
"name": "毛玻璃",
100+
"description": "启用背景模糊效果",
101+
"switchbutton_name": {"enable": "开启", "disable": "关闭"},
102+
},
103+
"background_blur_radius": {"name": "模糊度", "description": "调整背景模糊程度"},
104+
"background_preview": {"name": "预览", "description": "当前设置的背景预览"},
105+
"select_background_image": {
106+
"name": "选择背景图片",
107+
"description": "选择背景图片文件",
108+
"pushbutton_name": "选择",
109+
},
110+
"clear_background_image": {
111+
"name": "清除背景图片",
112+
"description": "清除已选择的背景图片",
113+
"pushbutton_name": "清除",
114+
},
115+
"select_background_image_dialog": {
116+
"name": "选择背景图片",
117+
"description": "选择背景图片文件",
118+
},
119+
"image_files": {"name": "图片文件", "description": "图片文件"},
120+
"all_files": {"name": "所有文件", "description": "所有文件"},
121+
"preview_default": {"name": "使用默认背景", "description": "使用默认背景"},
122+
"preview_no_image": {"name": "未选择图片", "description": "未选择图片"},
123+
"preview_load_failed": {"name": "图片加载失败", "description": "图片加载失败"},
74124
},
75125
"EN_US": {
76126
"title": {"name": "Theme Management", "description": "Manage software themes"},
77127
"market": {"name": "Market", "description": "Browse and download new themes"},
78128
"installed": {"name": "Installed", "description": "Manage installed themes"},
129+
"background": {
130+
"name": "Background",
131+
"description": "Set background color or image",
132+
},
79133
"refresh_market": {
80134
"name": "Refresh Market",
81135
"description": "Refresh the theme market list",
@@ -158,5 +212,79 @@
158212
"name": "Cancel Lottery (HTML)",
159213
"description": "Cancel Lottery page (HTML)",
160214
},
215+
"main_window_background": {
216+
"name": "Main Window Background",
217+
"description": "Configure main window background",
218+
},
219+
"settings_window_background": {
220+
"name": "Settings Window Background",
221+
"description": "Configure settings window background",
222+
},
223+
"notification_floating_window_background": {
224+
"name": "Notification Floating Window Background",
225+
"description": "Configure notification floating window background",
226+
},
227+
"background_mode": {
228+
"name": "Background Type",
229+
"description": "Choose background type",
230+
"combo_items": ["Default", "Color", "Image"],
231+
},
232+
"background_color": {
233+
"name": "Background Color",
234+
"description": "Set background color",
235+
},
236+
"background_image": {
237+
"name": "Background Image",
238+
"description": "Select an image file",
239+
},
240+
"background_brightness": {
241+
"name": "Image Brightness",
242+
"description": "Adjust image brightness",
243+
},
244+
"background_opacity": {
245+
"name": "Opacity",
246+
"description": "Adjust background opacity",
247+
},
248+
"background_blur": {
249+
"name": "Blur",
250+
"description": "Enable background blur effect",
251+
"switchbutton_name": {"enable": "On", "disable": "Off"},
252+
},
253+
"background_blur_radius": {
254+
"name": "Blur Radius",
255+
"description": "Adjust blur intensity",
256+
},
257+
"background_preview": {
258+
"name": "Preview",
259+
"description": "Preview current background",
260+
},
261+
"select_background_image": {
262+
"name": "Select Background Image",
263+
"description": "Select an image file",
264+
"pushbutton_name": "Select",
265+
},
266+
"clear_background_image": {
267+
"name": "Clear Background Image",
268+
"description": "Clear selected image",
269+
"pushbutton_name": "Clear",
270+
},
271+
"select_background_image_dialog": {
272+
"name": "Select Background Image",
273+
"description": "Select an image file",
274+
},
275+
"image_files": {"name": "Image Files", "description": "Image files"},
276+
"all_files": {"name": "All Files", "description": "All files"},
277+
"preview_default": {
278+
"name": "Using default background",
279+
"description": "Using default background",
280+
},
281+
"preview_no_image": {
282+
"name": "No image selected",
283+
"description": "No image selected",
284+
},
285+
"preview_load_failed": {
286+
"name": "Failed to load image",
287+
"description": "Failed to load image",
288+
},
161289
},
162290
}

app/Language/modules/update.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,13 @@
5555
"update_source": {
5656
"name": "更新源选择",
5757
"description": "选择软件更新下载来源",
58-
"combo_items": ["自动检测延迟", "github", "ghfast", "gh-proxy"],
58+
"combo_items": [
59+
"自动检测延迟",
60+
"github",
61+
"ghproxy.sectl",
62+
"ghfast",
63+
"gh-proxy",
64+
],
5965
},
6066
},
6167
"EN_US": {
@@ -114,8 +120,9 @@
114120
"combo_items": {
115121
"0": "Auto detect delay",
116122
"1": "GitHub",
117-
"2": "ghfast",
118-
"3": "gh-proxy",
123+
"2": "ghproxy.sectl",
124+
"3": "ghfast",
125+
"4": "gh-proxy",
119126
},
120127
},
121128
"force_check": {"name": "Force check for updates"},

0 commit comments

Comments
 (0)