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:
@ -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)
|
||||
}
|
||||
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user