TDKCandidates // Weaken the window border color.

This commit is contained in:
ShikiSuen 2022-12-16 15:04:12 +08:00
parent f9abcd4f09
commit be67220155
4 changed files with 12 additions and 4 deletions

View File

@ -155,7 +155,9 @@ public struct VwrCandidateHorizontal: View {
.frame(minWidth: thePool.maxWindowWidth, maxWidth: thePool.maxWindowWidth)
.background(Color(nsColor: NSColor.controlBackgroundColor).ignoresSafeArea())
.overlay(
RoundedRectangle(cornerRadius: 10).stroke(.white.opacity(0.2), lineWidth: 1)
RoundedRectangle(cornerRadius: 10).stroke(
Color(white: colorScheme == .dark ? 0 : 1).opacity(colorScheme == .dark ? 1 : 0.1), lineWidth: 0.5
)
)
.cornerRadius(10)
}

View File

@ -161,7 +161,9 @@ public struct VwrCandidateVertical: View {
}
.background(Color(nsColor: NSColor.controlBackgroundColor).ignoresSafeArea())
.overlay(
RoundedRectangle(cornerRadius: 10).stroke(.white.opacity(0.2), lineWidth: 1)
RoundedRectangle(cornerRadius: 10).stroke(
Color(white: colorScheme == .dark ? 0 : 1).opacity(colorScheme == .dark ? 1 : 0.1), lineWidth: 0.5
)
)
.cornerRadius(10)
}

View File

@ -160,7 +160,9 @@ public struct VwrCandidateHorizontalBackports: View {
.frame(minWidth: thePool.maxWindowWidth, maxWidth: thePool.maxWindowWidth)
.background(Color(white: colorScheme == .dark ? 0.1 : 1))
.overlay(
RoundedRectangle(cornerRadius: 10).stroke(.white.opacity(0.2), lineWidth: 1)
RoundedRectangle(cornerRadius: 10).stroke(
Color(white: colorScheme == .dark ? 0 : 1).opacity(colorScheme == .dark ? 1 : 0.1), lineWidth: 0.5
)
)
.cornerRadius(10)
}

View File

@ -166,7 +166,9 @@ public struct VwrCandidateVerticalBackports: View {
}
.background(Color(white: colorScheme == .dark ? 0.1 : 1))
.overlay(
RoundedRectangle(cornerRadius: 10).stroke(.white.opacity(0.2), lineWidth: 1)
RoundedRectangle(cornerRadius: 10).stroke(
Color(white: colorScheme == .dark ? 0 : 1).opacity(colorScheme == .dark ? 1 : 0.1), lineWidth: 0.5
)
)
.cornerRadius(10)
}