feat(bar): unify popup handling and improve layouts

- Unified popup handling in ClockWidget, Resource, BatteryPopup, and WeatherBar
  using PanelWindow + LazyLoader for consistent positioning and compositor animations.
- Replaced plain text with ColumnLayout and RowLayout where possible, adding
  MaterialSymbol icons for improved visual consistency with the overall desktop style.
- Added Translation.tr() for bilingual (Chinese/English) support to avoid hardcoded strings.
- Based on improvements from PR #1771 (mine) and PR #1773 (by @finjener), merged and refined into a more polished and practical solution.
This commit is contained in:
Runze
2025-08-06 18:02:55 +08:00
parent 1dc46fa104
commit 061bb2abeb
7 changed files with 224 additions and 72 deletions
+20 -1
View File
@@ -316,5 +316,24 @@
"Time to empty:": "Time to empty:",
"Fully charged": "Fully charged",
"Charging:": "Charging:",
"Discharging:": "Discharging:"
"Discharging:": "Discharging:",
"Uptime:": "Uptime:",
"Upcoming Tasks:": "Upcoming Tasks:",
"No pending tasks": "No pending tasks",
"... and %1 more": "... and %1 more",
"Memory Usage": "Memory Usage",
"Used:": "Used:",
"Free:": "Free:",
"Total:": "Total:",
"Usage:": "Usage:",
"Swap Usage": "Swap Usage",
"Swap:": "Swap:",
"Not configured": "Not configured",
"CPU Usage": "CPU Usage",
"Current:": "Current:",
"Load:": "Load:",
"High": "High",
"Medium": "Medium",
"Low": "Low",
"System Resource": "System Resource"
}
+20 -1
View File
@@ -316,5 +316,24 @@
"Time to empty:": "距离耗尽:",
"Fully charged": "已充满电",
"Charging:": "充电功率:",
"Discharging:": "放电功率:"
"Discharging:": "放电功率:",
"Uptime:": "运行时间:",
"Upcoming Tasks:": "待办任务:",
"No pending tasks": "没有待办任务",
"... and %1 more": "... 还有 %1 个",
"Memory Usage": "内存使用情况",
"Used:": "已用:",
"Free:": "可用:",
"Total:": "总计:",
"Usage:": "占比:",
"Swap Usage": "交换区使用情况",
"Swap:": "交换区:",
"Not configured": "未配置",
"CPU Usage": "CPU 使用情况",
"Current:": "当前占比:",
"Load:": "负载:",
"High": "高",
"Medium": "中",
"Low": "低",
"System Resource": "系统资源"
}