1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-11-07 05:10:06 +01:00

🐛 Fix bug related to "?" not showing up

This commit is contained in:
2023-01-19 17:50:13 +01:00
parent 2fa50a7dc4
commit d3b1afe9fd
3 changed files with 15 additions and 6 deletions

View File

@@ -14,8 +14,17 @@ struct HelpButton: View {
var body: some View {
Button(action: action, label: {
Text("?").font(.system(size: 12, weight: .medium))
ZStack {
Circle()
.strokeBorder(Color(NSColor.separatorColor), lineWidth: 0.5)
.background(Circle().foregroundColor(Color(NSColor.controlColor)).opacity(0.7))
.shadow(color: Color(NSColor.separatorColor).opacity(0.3), radius: 1)
.frame(width: 14, height: 14)
Text("?").font(.system(size: 12, weight: .medium))
.foregroundColor(Color(NSColor.labelColor))
}
})
.buttonStyle(BorderlessButtonStyle())
.focusable(false)
}

View File

@@ -74,7 +74,7 @@ struct ServicesView: View {
.foregroundColor(self.manager.statusColor)
Text(self.manager.statusMessage)
.font(.system(size: 11))
if self.manager.statusColor == .red {
if self.manager.statusColor == Color("StatusColorRed") {
HelpButton {
let type = manager.hasError
? "key_service_has_error"