Skip to content

Commit c22826a

Browse files
committed
设置侧边栏全部顶部
1 parent 04c143d commit c22826a

6 files changed

Lines changed: 32 additions & 557 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ v2.3 - Shirako (砂狼白子) beta 1
1616
- 优化 **设置侧边栏**,展开收起滚动且隐藏滚动条
1717
- 优化 **贡献者&剩余名单窗口**,窗口宽度调整为900px
1818
- 优化 **模板窗口**,单例模式,避免重复打开
19+
- 优化 **设置侧边栏**,固定全部为顶部显示
1920

2021
## 🐛 修复问题
2122

app/Language/modules/sidebar_settings.py

Lines changed: 0 additions & 96 deletions
This file was deleted.

app/Language/modules/sidebar_tray_management.py

Lines changed: 0 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -348,127 +348,6 @@
348348
},
349349
}
350350

351-
# 设置窗口侧边栏语言配置
352-
sidebar_management_settings = {
353-
"ZH_CN": {
354-
"title": {
355-
"name": "设置窗口侧边栏",
356-
"description": "配置设置窗口侧边栏 (重启生效)",
357-
},
358-
"base_settings": {
359-
"name": "基础设置位置",
360-
"description": "设置基础设置项在侧边栏位置 (重启生效)",
361-
"combo_items": ["顶部", "底部", "不显示"],
362-
},
363-
"name_management": {
364-
"name": "名单管理位置",
365-
"description": "设置名单管理项在侧边栏位置 (重启生效)",
366-
"combo_items": ["顶部", "底部", "不显示"],
367-
},
368-
"draw_settings": {
369-
"name": "抽取设置位置",
370-
"description": "设置抽取设置项在侧边栏位置 (重启生效)",
371-
"combo_items": ["顶部", "底部", "不显示"],
372-
},
373-
"floating_window_management": {
374-
"name": "浮窗管理位置",
375-
"description": "设置浮窗管理项在侧边栏位置 (重启生效)",
376-
"combo_items": ["顶部", "底部", "不显示"],
377-
},
378-
"notification_service": {
379-
"name": "通知服务位置",
380-
"description": "设置通知服务项在侧边栏位置 (重启生效)",
381-
"combo_items": ["顶部", "底部", "不显示"],
382-
},
383-
"security_settings": {
384-
"name": "安全设置位置",
385-
"description": "设置安全设置项在侧边栏位置 (重启生效)",
386-
"combo_items": ["顶部", "底部", "不显示"],
387-
},
388-
"voice_settings": {
389-
"name": "语音设置位置",
390-
"description": "设置语音设置项在侧边栏位置 (重启生效)",
391-
"combo_items": ["顶部", "底部", "不显示"],
392-
},
393-
"settings_history": {
394-
"name": "设置历史记录位置",
395-
"description": "设置历史记录项在侧边栏位置 (重启生效)",
396-
"combo_items": ["顶部", "底部", "不显示"],
397-
},
398-
"more_settings": {
399-
"name": "更多设置位置",
400-
"description": "设置更多设置项在侧边栏位置 (重启生效)",
401-
"combo_items": ["顶部", "底部", "不显示"],
402-
},
403-
"linkage_settings": {
404-
"name": "课程设置位置",
405-
"description": "设置课程设置项在侧边栏位置 (重启生效)",
406-
"combo_items": ["顶部", "底部", "不显示"],
407-
},
408-
},
409-
"EN_US": {
410-
"title": {
411-
"name": "Set window sidebar",
412-
"description": "Configure set window sidebar",
413-
},
414-
"home": {
415-
"name": "Home position",
416-
"description": "Set the position of Home in sidebar (Restart to take effect)",
417-
"combo_items": {"0": "Top", "1": "Bottom", "2": "Hide"},
418-
},
419-
"base_settings": {
420-
"description": "Set the position of Basic settings in sidebar (Restart to take effect)",
421-
"combo_items": {"0": "Top", "1": "Bottom", "2": "Hide"},
422-
"name": "Basic position settings",
423-
},
424-
"name_management": {
425-
"description": "Set the position of List management in sidebar (Restart to take effect)",
426-
"combo_items": {"0": "Top", "1": "Bottom", "2": "Hide"},
427-
"name": "Position of List management",
428-
},
429-
"draw_settings": {
430-
"description": "Set the position of Picking settings in sidebar (Restart to take effect)",
431-
"combo_items": {"0": "Top", "1": "Bottom", "2": "Hide"},
432-
"name": "Position of Pick settings",
433-
},
434-
"floating_window_management": {
435-
"name": "Floating window management position",
436-
"description": "Set the position of Floating window management in sidebar (Restart to take effect)",
437-
"combo_items": {"0": "Top", "1": "Bottom", "2": "Hide"},
438-
},
439-
"notification_service": {
440-
"description": "Set the position of Notification settings in sidebar (Restart to take effect)",
441-
"combo_items": {"0": "Top", "1": "Bottom", "2": "Hide"},
442-
"name": "Position of Notification settings",
443-
},
444-
"security_settings": {
445-
"description": "Set the position of Safety settings in sidebar (Restart to take effect)",
446-
"combo_items": {"0": "Top", "1": "Bottom", "2": "Hide"},
447-
"name": "Position of Security settings",
448-
},
449-
"voice_settings": {
450-
"description": "Set the position of Voice settings in sidebar (Restart to take effect)",
451-
"combo_items": {"0": "Top", "1": "Bottom", "2": "Hide"},
452-
"name": "Position of Voice settings",
453-
},
454-
"settings_history": {
455-
"description": "Set history position in sidebar (Restart to take effect)",
456-
"combo_items": {"0": "Top", "1": "Bottom", "2": "Hide"},
457-
"name": "Set history position",
458-
},
459-
"more_settings": {
460-
"description": "Set the position of More settings in sidebar (Restart to take effect)",
461-
"combo_items": {"0": "Top", "1": "Bottom", "2": "Hide"},
462-
"name": "Position of More settings",
463-
},
464-
"linkage_settings": {
465-
"description": "Set the position of Course settings in sidebar (Restart to take effect)",
466-
"combo_items": {"0": "Top", "1": "Bottom", "2": "Hide"},
467-
"name": "Position of Course settings",
468-
},
469-
},
470-
}
471-
472351
# 托盘管理语言配置
473352
tray_management = {
474353
"ZH_CN": {

app/tools/settings_default_storage.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -359,20 +359,6 @@
359359
"main_window_history": {"default_value": 1},
360360
"settings_icon": {"default_value": 1},
361361
},
362-
"sidebar_management_settings": {
363-
"title": {"default_value": None},
364-
"base_settings": {"default_value": 0},
365-
"name_management": {"default_value": 0},
366-
"draw_settings": {"default_value": 0},
367-
"floating_window_management": {"default_value": 0},
368-
"notification_service": {"default_value": 1},
369-
"security_settings": {"default_value": 1},
370-
"linkage_settings": {"default_value": 1},
371-
"voice_settings": {"default_value": 1},
372-
"theme_management": {"default_value": 1},
373-
"settings_history": {"default_value": 1},
374-
"more_settings": {"default_value": 1},
375-
},
376362
"tray_management": {
377363
"title": {"default_value": None},
378364
"show_hide_main_window": {"default_value": True},

0 commit comments

Comments
 (0)