Skip to content

Commit

Permalink
fix(swiftui): fix the front color of the status images: only use mult…
Browse files Browse the repository at this point in the history
…icolor for easter egg
  • Loading branch information
genshen committed Feb 3, 2024
1 parent 2383252 commit c232c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swiftui-client/wssocks-ustb-client/menu/MenuBarView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ struct MenuBarView: View {
.aspectRatio(contentMode: .fit)
.foregroundColor(wssocksStatus==0 ? Color.primary: Color.accentColor)
.padding((wssocksStatus == 1 && clickI % 5 == 4) ? 12: 24)
.symbolRenderingMode(.multicolor)
.symbolRenderingMode((wssocksStatus == 1 && clickI % 5 == 4) ? .multicolor: .hierarchical)
}.buttonStyle(PlainButtonStyle())
if wssocksStatus == 1 && clickI % 5 == 4 {
Text("Oh! This is an easter egg!")
Expand Down

0 comments on commit c232c17

Please sign in to comment.