mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-09-20 03:10:57 +00:00
Tweaks.
This commit is contained in:
parent
c9096ba915
commit
7d593d63d3
@ -57,7 +57,7 @@ struct ToolbarStatusButtonStyle: ButtonStyle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ToolbarButtonStyle: ButtonStyle {
|
struct ToolbarButtonStyle: PrimitiveButtonStyle {
|
||||||
|
|
||||||
var tint: Color = .white.opacity(0.1)
|
var tint: Color = .white.opacity(0.1)
|
||||||
|
|
||||||
@ -65,11 +65,11 @@ struct ToolbarButtonStyle: ButtonStyle {
|
|||||||
if #available(macOS 26.0, *) {
|
if #available(macOS 26.0, *) {
|
||||||
configuration
|
configuration
|
||||||
.label
|
.label
|
||||||
.padding(10)
|
.padding(.vertical, 10)
|
||||||
|
.padding(.horizontal, 12)
|
||||||
.glassEffect(.regular.interactive().tint(tint))
|
.glassEffect(.regular.interactive().tint(tint))
|
||||||
} else {
|
} else {
|
||||||
configuration
|
BorderedButtonStyle().makeBody(configuration: configuration)
|
||||||
.label
|
|
||||||
.padding(EdgeInsets(top: 6, leading: 8, bottom: 6, trailing: 8))
|
.padding(EdgeInsets(top: 6, leading: 8, bottom: 6, trailing: 8))
|
||||||
.foregroundColor(.white)
|
.foregroundColor(.white)
|
||||||
.clipShape(RoundedRectangle(cornerRadius: 5))
|
.clipShape(RoundedRectangle(cornerRadius: 5))
|
||||||
|
Loading…
Reference in New Issue
Block a user