Skip to content

Commit

Permalink
fix: don't use transparent effect on linux with settings
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Jan 14, 2025
1 parent 129349c commit 16a484c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion desktop/src/components/SettingsModal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ModifyState, cx } from '~/lib/utils'
import SettingsPage from '~/pages/settings/Page'
import * as os from '@tauri-apps/plugin-os'

interface SettingsModalProps {
visible: boolean
Expand All @@ -8,7 +9,8 @@ interface SettingsModalProps {
export default function SettingsModal({ visible, setVisible }: SettingsModalProps) {
if (visible) {
return (
<div className={cx('modal modal-open backdrop-blur-3xl !bg-base-100 dark:!bg-transparent overflow-y-auto')}>
// Don't use transparent background on Linux since the backdrop doesn't work!
<div className={cx('modal modal-open backdrop-blur-3xl !bg-base-100 overflow-y-auto', os.platform() != 'linux' && 'dark:!bg-transparent')}>
<SettingsPage setVisible={setVisible} />
</div>
)
Expand Down

0 comments on commit 16a484c

Please sign in to comment.