Skip to content

Commit

Permalink
fix: font name duplicated if installed default font
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Aug 19, 2024
1 parent 0a190d3 commit 1efdd40
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function createWindow(
x: 18,
y: 18,
},
vibrancy: "sidebar",
vibrancy: "under-window",
visualEffectState: "active",
transparent: true,
} as Electron.BrowserWindowConstructorOptions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type Props = Component<
React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
>
const MacOSVibrancy: Props = ({ className, children, ...rest }) => (
<div className={cn("bg-native/50 dark:bg-native/10", className)} {...rest}>
<div className={cn("bg-native/30 dark:bg-native/10", className)} {...rest}>
{children}
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/ui/background/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "./vibrancy"
export * from "./WindowUnderBlur"
2 changes: 1 addition & 1 deletion src/renderer/src/modules/settings/modules/fonts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const ContentFontSelector = () => {

export const UIFontSelector = () => {
// filter out the fallback font
const data = useFontData().slice(1)
const data = useFontData().slice(1).filter((d) => d.value !== DEFAULT_FONT)
const uiFont = useUISettingSelector((state) => state.uiFontFamily)
const setCustom = usePresentCustomFontDialog("uiFontFamily")
const isCustomFont = useMemo(
Expand Down

0 comments on commit 1efdd40

Please sign in to comment.