Skip to content

Commit

Permalink
app icon switcher changes
Browse files Browse the repository at this point in the history
  • Loading branch information
richardkunkli committed Oct 28, 2024
1 parent f9720db commit ff44d5d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"originHash" : "ff456cff2928c9d9d8eb19af1178aa7a334f7691188aff2eaed742626506771f",
"originHash" : "7cdc1f3bd18c54561dd174b285f645b3029f5a2147bf6d2ab4a408088e2a45e9",
"pins" : [
{
"identity" : "defaults",
Expand Down
25 changes: 18 additions & 7 deletions boringNotch/components/Settings/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -724,14 +724,25 @@ struct Appearance: View {
Image(icon)
.resizable()
.frame(width: 80, height: 80)
}
.background(
RoundedRectangle(cornerRadius: 20, style: .circular)
.strokeBorder(
icon == selectedIcon ? Defaults[.accentColor] : .clear,
lineWidth: 2.5
.background(
RoundedRectangle(cornerRadius: 20, style: .circular)
.strokeBorder(
icon == selectedIcon ? Defaults[.accentColor] : .clear,
lineWidth: 2.5
)
)

Text("Default")
.fontWeight(.medium)
.font(.caption)
.foregroundStyle(icon == selectedIcon ? .white : .secondary)
.padding(.horizontal, 10)
.padding(.vertical, 3)
.background(
Capsule()
.fill(icon == selectedIcon ? Defaults[.accentColor] : .clear)
)
)
}
.onTapGesture {
withAnimation {
selectedIcon = icon
Expand Down

0 comments on commit ff44d5d

Please sign in to comment.