Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
Build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v2
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
Expand All @@ -22,7 +22,12 @@ jobs:
- name: SwiftFormat # this is necessary since we'll format files in build phase
run: swift run -c release swiftformat ../ --lint
working-directory: ./BuildTools
- name: Switch Xcode version
run: sudo xcode-select -s /Applications/Xcode_12.4.app
- name: Build
run: xcodebuild -scheme eul -project ./eul.xcodeproj -sdk macosx build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED="NO" CODE_SIGN_ENTITLEMENTS="" CODE_SIGNING_ALLOWED="NO" | xcpretty && exit ${PIPESTATUS[0]}
run: xcodebuild -scheme eul -project ./eul.xcodeproj build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED="NO" CODE_SIGN_ENTITLEMENTS="" CODE_SIGNING_ALLOWED="NO" | xcpretty && exit ${PIPESTATUS[0]}
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
if: success()
with:
name: eul-app
path: ~/Library/Developer/Xcode/DerivedData/eul-*/Build/Products/Debug/eul.app
retention-days: 7
1 change: 1 addition & 0 deletions Resource/ar.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"cpu.physical_cores" = "النوى المادية";
"cpu.logical_cores" = "النوى المنطقية";
"cpu.up_time" = "مدة التشغيل";
"cpu.up_time_days" = "أيام التشغيل";
"cpu.thermal_level" = "المستوى الحراري";
"cpu.system" = "النظام";
"cpu.user" = "المستعمل";
Expand Down
1 change: 1 addition & 0 deletions Resource/cs.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"cpu.physical_cores" = "Fyzická jádra";
"cpu.logical_cores" = "Logická jádra";
"cpu.up_time" = "V provozu";
"cpu.up_time_days" = "Dny provozu";
"cpu.thermal_level" = "Teplotní úroveň";
"cpu.system" = "Systém";
"cpu.user" = "Uživatel";
Expand Down
1 change: 1 addition & 0 deletions Resource/de.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"cpu.physical_cores" = "Physische Kerne";
"cpu.logical_cores" = "Logische Kerne";
"cpu.up_time" = "Betriebszeit";
"cpu.up_time_days" = "Betriebstage";
"cpu.thermal_level" = "Wärmegrad";
"cpu.system" = "System";
"cpu.user" = "Benutzer";
Expand Down
1 change: 1 addition & 0 deletions Resource/dk.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"cpu.physical_cores" = "fysiske kerner";
"cpu.logical_cores" = "logiske kerner";
"cpu.up_time" = "oppetid";
"cpu.up_time_days" = "Uptime Days";
"cpu.thermal_level" = "termisk niveau";
"cpu.system" = "system";
"cpu.user" = "bruger";
Expand Down
1 change: 1 addition & 0 deletions Resource/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"cpu.physical_cores" = "Physical Cores";
"cpu.logical_cores" = "Logical Cores";
"cpu.up_time" = "Up Time";
"cpu.up_time_days" = "Uptime Days";
"cpu.thermal_level" = "Thermal Lv.";
"cpu.system" = "System";
"cpu.user" = "User";
Expand Down
1 change: 1 addition & 0 deletions Resource/es.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"cpu.physical_cores" = "Núcleos Físicos";
"cpu.logical_cores" = "Núcleos Lógicos";
"cpu.up_time" = "Tiempo de Actividad";
"cpu.up_time_days" = "Uptime Days";
"cpu.thermal_level" = "Nivel Térmico";
"cpu.system" = "Sistema";
"cpu.user" = "Usuario";
Expand Down
1 change: 1 addition & 0 deletions Resource/fr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"cpu.physical_cores" = "Cœurs physiques";
"cpu.logical_cores" = "Cœurs logiques";
"cpu.up_time" = "Temps depuis le démarrage";
"cpu.up_time_days" = "Uptime Days";
"cpu.thermal_level" = "Niveau thermique";
"cpu.system" = "Système";
"cpu.user" = "Utilisateur";
Expand Down
1 change: 1 addition & 0 deletions Resource/hu.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"cpu.physical_cores" = "Fizikai magok";
"cpu.logical_cores" = "Logikai magok";
"cpu.up_time" = "üzemidő";
"cpu.up_time_days" = "Uptime Days";
"cpu.thermal_level" = "Hőm. szint";
"cpu.system" = "Rendszer";
"cpu.user" = "Felhaszn.";
Expand Down
1 change: 1 addition & 0 deletions Resource/it.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"cpu.physical_cores" = "Core Fisici";
"cpu.logical_cores" = "Core Logici";
"cpu.up_time" = "Up Time";
"cpu.up_time_days" = "Uptime Days";
"cpu.thermal_level" = "Thermal Lv.";
"cpu.system" = "Sistema";
"cpu.user" = "Utente";
Expand Down
1 change: 1 addition & 0 deletions Resource/ja.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"cpu.physical_cores" = "物理コア";
"cpu.logical_cores" = "論理コア";
"cpu.up_time" = "稼働時間";
"cpu.up_time_days" = "稼働日数";
"cpu.thermal_level" = "温度レベル";
"cpu.system" = "システム";
"cpu.user" = "ユーザー";
Expand Down
1 change: 1 addition & 0 deletions Resource/ko.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ battery.timeRemaining = "Time Rem.";
"cpu.physical_cores" = "물리 코어";
"cpu.logical_cores" = "논리 코어";
"cpu.up_time" = "가동 시간";
"cpu.up_time_days" = "Uptime Days";
"cpu.thermal_level" = "온도 Lv.";
"cpu.system" = "시스템";
"cpu.user" = "사용자";
Expand Down
1 change: 1 addition & 0 deletions Resource/mn.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"cpu.physical_cores" = "Бодит цөм";
"cpu.logical_cores" = "Логик цөм";
"cpu.up_time" = "Асаалттай";
"cpu.up_time_days" = "Uptime Days";
"cpu.thermal_level" = "Thermal Lv.";
"cpu.system" = "Систем";
"cpu.user" = "Хэрэглэгч";
Expand Down
1 change: 1 addition & 0 deletions Resource/my.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"cpu.physical_cores" = "Physical Cores";
"cpu.logical_cores" = "Logical Cores";
"cpu.up_time" = "Up Time";
"cpu.up_time_days" = "Uptime Days";
"cpu.thermal_level" = "အပူအဆင့်";
"cpu.system" = "စနစ်";
"cpu.user" = "အသုံးပြုသူ";
Expand Down
1 change: 1 addition & 0 deletions Resource/pl.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"cpu.physical_cores" = "Physical Cores";
"cpu.logical_cores" = "Logical Cores";
"cpu.up_time" = "Up Time";
"cpu.up_time_days" = "Uptime Days";
"cpu.thermal_level" = "Thermal Lv.";
"cpu.system" = "System";
"cpu.user" = "Użytkownik";
Expand Down
1 change: 1 addition & 0 deletions Resource/pt.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"cpu.physical_cores" = "Núcleos Físicos";
"cpu.logical_cores" = "Núcleos Lógicos";
"cpu.up_time" = "Tempo de Atividade";
"cpu.up_time_days" = "Uptime Days";
"cpu.thermal_level" = "Nvl. Térmico";
"cpu.system" = "Sistema";
"cpu.user" = "Utilizador";
Expand Down
1 change: 1 addition & 0 deletions Resource/ru.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"cpu.physical_cores" = "Физических Ядер";
"cpu.logical_cores" = "Логических Ядер";
"cpu.up_time" = "Время работы";
"cpu.up_time_days" = "Uptime Days";
"cpu.thermal_level" = "Уровень тепла";
"cpu.system" = "Система";
"cpu.user" = "Пользователь";
Expand Down
1 change: 1 addition & 0 deletions Resource/se.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Copyright © 2020 Gao Sun. All rights reserved.
"cpu.physical_cores" = "Fysisk kärna";
"cpu.logical_cores" = "Logisk kärna";
"cpu.up_time" = "Upp tid";
"cpu.up_time_days" = "Uptime Days";
"cpu.thermal_level" = "Termisk nivå";
"cpu.system" = "System";
"cpu.user" = "Användare";
Expand Down
1 change: 1 addition & 0 deletions Resource/th.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"cpu.physical_cores" = "แกนประมวลผลทางกายภาพ";
"cpu.logical_cores" = "แกนประมวลผลทางตรรกะ";
"cpu.up_time" = "เวลาทำงาน";
"cpu.up_time_days" = "Uptime Days";
"cpu.thermal_level" = "ระดับความร้อน";
"cpu.system" = "ระบบ";
"cpu.user" = "ผู้ใช้";
Expand Down
1 change: 1 addition & 0 deletions Resource/tr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"cpu.physical_cores" = "Fiziksel çekirdekler";
"cpu.logical_cores" = "Mantıksal çekirdekler";
"cpu.up_time" = "Çalışma süresi";
"cpu.up_time_days" = "Uptime Days";
"cpu.thermal_level" = "Termal düzey";
"cpu.system" = "Sistem";
"cpu.user" = "Kullanıcı";
Expand Down
1 change: 1 addition & 0 deletions Resource/uk.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"cpu.physical_cores" = "Фізичних Ядер";
"cpu.logical_cores" = "Логічних Ядер";
"cpu.up_time" = "Час Роботи";
"cpu.up_time_days" = "Uptime Days";
"cpu.thermal_level" = "Тепловий Рівень";
"cpu.system" = "Система";
"cpu.user" = "Користувач";
Expand Down
1 change: 1 addition & 0 deletions Resource/zh-Hans.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"cpu.physical_cores" = "物理核心";
"cpu.logical_cores" = "逻辑核心";
"cpu.up_time" = "运行时间";
"cpu.up_time_days" = "开机天数";
"cpu.thermal_level" = "温度等级";
"cpu.system" = "系统";
"cpu.user" = "用户";
Expand Down
1 change: 1 addition & 0 deletions Resource/zh-Hant.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"cpu.physical_cores" = "物理核心";
"cpu.logical_cores" = "邏輯核心";
"cpu.up_time" = "執行時間";
"cpu.up_time_days" = "開機天數";
"cpu.thermal_level" = "溫度等級";
"cpu.system" = "系統";
"cpu.user" = "使用者";
Expand Down
6 changes: 4 additions & 2 deletions SharedLibrary/Components/ProgressBarView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
import SwiftUI

public struct ProgressBarView: View {
public init(width: CGFloat = 80, percentage: CGFloat = 100, showText: Bool = true, textWidth: CGFloat = 40, customText: String? = nil) {
public init(width: CGFloat = 80, percentage: CGFloat = 100, showText: Bool = true, textWidth: CGFloat = 40, customText: String? = nil, color: Color = .primary) {
self.width = width
self.percentage = percentage
self.showText = showText
self.textWidth = textWidth
self.customText = customText
self.color = color
}

@State var firstAppear = true
Expand All @@ -23,6 +24,7 @@ public struct ProgressBarView: View {
public var showText = true
public var textWidth: CGFloat = 40
public var customText: String?
public var color: Color = .primary

public var body: some View {
HStack(alignment: .center, spacing: 8) {
Expand All @@ -32,7 +34,7 @@ public struct ProgressBarView: View {
.foregroundColor(.controlBackground)
RoundedRectangle(cornerRadius: 4)
.frame(width: width * percentage / 100, height: 4)
.foregroundColor(.primary)
.foregroundColor(color)
}
if showText {
Text(customText.map { $0 } ?? String(format: "%.1f%%", percentage))
Expand Down
6 changes: 6 additions & 0 deletions SharedLibrary/Extension/Color.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,10 @@ public extension Color {
static let shadow = Color(NSColor.shadowColor)
static let separator = Color(NSColor.separatorColor)
static let thirdary = Color.secondary.opacity(0.7)

// Graph Bar Colors
static let graphRed = Color(hex: "e03a3e")
static let graphBlue = Color(hex: "009ddc")
static let graphOrange = Color(hex: "f6821f")
static let graphYellow = Color(hex: "fcb827")
}
Loading
Loading