Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.
Open
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
104 changes: 83 additions & 21 deletions Whisky/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,12 @@
}
}
}
},
"Anonymous Wine Process" : {

},
"Bottle Monitor" : {

},
"button.cDrive" : {
"localizations" : {
Expand Down Expand Up @@ -1229,25 +1235,25 @@
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "تحديث"
}
},
"cs" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "Obnovit"
}
},
"da" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "Opfrisk"
}
},
"de" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "Aktualisieren"
}
},
Expand All @@ -1259,103 +1265,103 @@
},
"es" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "Actualizar"
}
},
"fi" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "Päivitä"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "Rafraîchir"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "Aggiorna"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "再読み込み"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "새로 고침"
}
},
"nl" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "Vernieuw"
}
},
"pl" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "Odśwież"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "Atualizar"
}
},
"pt-PT" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "Atualizar"
}
},
"ro" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "Reîmprospătează"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "Обновить"
}
},
"tr" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "Yenile"
}
},
"uk" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "Оновити"
}
},
"vi" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "Làm cho khỏe lại"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "刷新"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"state" : "needs_review",
"value" : "重新整理"
}
}
Expand Down Expand Up @@ -10068,6 +10074,9 @@
}
}
}
},
"Manual Debug Refresh" : {

},
"open.bottle" : {
"localizations" : {
Expand Down Expand Up @@ -11430,6 +11439,16 @@
}
}
},
"Process ID: %d" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Process Id: %d"
}
}
}
},
"process.table.executable" : {
"localizations" : {
"ar" : {
Expand Down Expand Up @@ -19319,6 +19338,39 @@
}
}
},
"view.monitor" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "View Wine Process Monitor"
}
}
}
},
"Whisky Monitor" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Whisky Monitor"
}
}
}
},
"why.monitor" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Wine processes are always named wine64-preloader, making it hard to know what's what in the system monitor. This monitor allows you to see the apps each process corresponds to."
}
}
}
},
"wine.clearShaderCaches" : {
"localizations" : {
"ar" : {
Expand Down Expand Up @@ -20684,6 +20736,16 @@
}
}
}
},
"Working Directory: %@" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Working Directory: %@"
}
}
}
}
},
"version" : "1.0"
Expand Down
7 changes: 7 additions & 0 deletions Whisky/Views/Bottle/BottleView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ struct BottleView: View {
private let gridLayout = [GridItem(.adaptive(minimum: 100, maximum: .infinity))]

var body: some View {
// Window("Whisky Monitor", id: "whisky-monitor-" + bottle.settings.name) {
// MonitorView(bottle: bottle)
// }.defaultSize(width: 500, height: 400)

NavigationStack(path: $path) {
ScrollView {
LazyVGrid(columns: gridLayout, alignment: .center) {
Expand All @@ -59,6 +63,9 @@ struct BottleView: View {
}
.formStyle(.grouped)
.scrollDisabled(true)

Text("Bottle Monitor").font(.headline)
MonitorView(bottle: bottle)
}
.bottomBar {
HStack {
Expand Down
45 changes: 45 additions & 0 deletions Whisky/Views/Common/CollapsibleView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
//
// CollapsibleView.swift
// Whisky
//
// This file is part of Whisky.
//
// Whisky is free software: you can redistribute it and/or modify it under the terms
// of the GNU General Public License as published by the Free Software Foundation,
// either version 3 of the License, or (at your option) any later version.
//
// Whisky is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along with Whisky.
// If not, see https://www.gnu.org/licenses/.
//

import SwiftUI

struct CollapsibleView<Header: View, Content: View>: View {
@State private var isExpanded: Bool = false
let header: () -> Header
let content: () -> Content

var body: some View {
VStack(alignment: .leading) {
Button(action: {
isExpanded.toggle()
}, label: {
HStack {
header()
Spacer()
Image(systemName: isExpanded ? "chevron.up" : "chevron.down")
}
.padding()
})
if isExpanded {
content()
.padding([.leading, .trailing, .bottom])
}
}
.background(RoundedRectangle(cornerRadius: 10).stroke())
}
}
Loading