1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-06 11:30:08 +02:00

🐛 Fix bug related to "?" not showing up

This commit is contained in:
2023-01-19 18:11:04 +01:00
parent b8e7397233
commit f92a3f545a
2 changed files with 11 additions and 2 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"