chore: force windows to default alpha color 1 (#5218)

This commit is contained in:
Faisal Amir 2025-06-09 17:44:22 +07:00 committed by GitHub
parent 4a3a0e6496
commit 0d0c624e99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 19 additions and 19 deletions

View File

@ -46,7 +46,7 @@ export function ColorPickerAppAccentColor() {
key={i} key={i}
className={cn( className={cn(
'size-4 rounded-full border border-main-view-fg/20', 'size-4 rounded-full border border-main-view-fg/20',
isSelected && 'ring-2 ring-blue-500 border-none' isSelected && 'ring-2 ring-accent border-none'
)} )}
onClick={() => { onClick={() => {
setAppAccentBgColor(item) setAppAccentBgColor(item)

View File

@ -16,38 +16,38 @@ export function ColorPickerAppBgColor() {
r: 20, r: 20,
g: 20, g: 20,
b: 20, b: 20,
a: IS_LINUX || !IS_TAURI ? 1 : 0.4, a: IS_WINDOWS || IS_LINUX || !IS_TAURI ? 1 : 0.4,
}, },
{ {
r: 250, r: 250,
g: 250, g: 250,
b: 250, b: 250,
a: IS_LINUX || !IS_TAURI ? 1 : 0.4, a: IS_WINDOWS || IS_LINUX || !IS_TAURI ? 1 : 0.4,
}, },
{ {
r: 70, r: 70,
g: 79, g: 79,
b: 229, b: 229,
a: IS_LINUX || !IS_TAURI ? 1 : 0.5, a: IS_WINDOWS || IS_LINUX || !IS_TAURI ? 1 : 0.5,
}, },
{ {
r: 238, r: 238,
g: 130, g: 130,
b: 238, b: 238,
a: IS_LINUX || !IS_TAURI ? 1 : 0.5, a: IS_WINDOWS || IS_LINUX || !IS_TAURI ? 1 : 0.5,
}, },
{ {
r: 255, r: 255,
g: 99, g: 99,
b: 71, b: 71,
a: IS_LINUX || !IS_TAURI ? 1 : 0.5, a: IS_WINDOWS || IS_LINUX || !IS_TAURI ? 1 : 0.5,
}, },
{ {
r: 255, r: 255,
g: 165, g: 165,
b: 0, b: 0,
a: IS_LINUX || !IS_TAURI ? 1 : 0.5, a: IS_WINDOWS || IS_LINUX || !IS_TAURI ? 1 : 0.5,
}, },
] ]

View File

@ -51,7 +51,7 @@ export function ColorPickerAppDestructiveColor() {
key={i} key={i}
className={cn( className={cn(
'size-4 rounded-full border border-main-view-fg/20', 'size-4 rounded-full border border-main-view-fg/20',
isSelected && 'ring-2 ring-blue-500 border-none' isSelected && 'ring-2 ring-accent border-none'
)} )}
onClick={() => { onClick={() => {
setAppDestructiveBgColor(item) setAppDestructiveBgColor(item)

View File

@ -39,7 +39,7 @@ export function ColorPickerAppMainView() {
key={i} key={i}
className={cn( className={cn(
'size-4 rounded-full border border-main-view-fg/20', 'size-4 rounded-full border border-main-view-fg/20',
isSelected && 'ring-2 ring-blue-500 border-none' isSelected && 'ring-2 ring-accent border-none'
)} )}
onClick={() => { onClick={() => {
setAppMainViewBgColor(item) setAppMainViewBgColor(item)

View File

@ -51,7 +51,7 @@ export function ColorPickerAppPrimaryColor() {
key={i} key={i}
className={cn( className={cn(
'size-4 rounded-full border border-main-view-fg/20', 'size-4 rounded-full border border-main-view-fg/20',
isSelected && 'ring-2 ring-blue-500 border-none' isSelected && 'ring-2 ring-accent border-none'
)} )}
onClick={() => { onClick={() => {
setAppPrimaryBgColor(item) setAppPrimaryBgColor(item)

View File

@ -41,22 +41,22 @@ export const fontSizeOptions = [
// Default appearance settings // Default appearance settings
const defaultFontSize: FontSize = '15px' const defaultFontSize: FontSize = '15px'
const defaultAppBgColor: RgbaColor = { const defaultAppBgColor: RgbaColor = {
r: 0, r: 25,
g: 0, g: 25,
b: 0, b: 25,
a: IS_LINUX || !IS_TAURI ? 1 : 0.4, a: IS_WINDOWS || IS_LINUX || !IS_TAURI ? 1 : 0.4,
} }
const defaultLightAppBgColor: RgbaColor = { const defaultLightAppBgColor: RgbaColor = {
r: 255, r: 255,
g: 255, g: 255,
b: 255, b: 255,
a: IS_LINUX || !IS_TAURI ? 1 : 0.4, a: IS_WINDOWS || IS_LINUX || !IS_TAURI ? 1 : 0.4,
} }
const defaultAppMainViewBgColor: RgbaColor = { r: 25, g: 25, b: 25, a: 1 } const defaultAppMainViewBgColor: RgbaColor = { r: 25, g: 25, b: 25, a: 1 }
const defaultLightAppMainViewBgColor: RgbaColor = { const defaultLightAppMainViewBgColor: RgbaColor = {
r: 250, r: 255,
g: 250, g: 255,
b: 250, b: 255,
a: 1, a: 1,
} }

View File

@ -60,7 +60,7 @@ export function AppearanceProvider() {
r: appBgColor.r / 255, r: appBgColor.r / 255,
g: appBgColor.g / 255, g: appBgColor.g / 255,
b: appBgColor.b / 255, b: appBgColor.b / 255,
alpha: IS_LINUX || !IS_TAURI ? 1 : appBgColor.a, alpha: IS_WINDOWS || IS_LINUX || !IS_TAURI ? 1 : appBgColor.a,
}) })
const culoriRgbMainView = rgb({ const culoriRgbMainView = rgb({