forked from sajjadmrx/btime-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes sajjadmrx#18 Add shadow to the widget similar to MacOS widgets. * **src/arzChand/app.arzChand.tsx** - Add `boxShadow` property to the main container's style to apply a shadow to the entire widget. * **src/setting/pages/arzChand/arzChand.setting.tsx** - Add a `Checkbox` component for enabling/disabling the shadow. - Update the `setSettingValue` function to handle the new shadow setting. - Update the `applyChanges` function to include the new shadow setting. * **src/arzChand/component/currency.component.tsx** - Add state variables for `isTransparent` and `shadow`. - Add a `MutationObserver` to update `isTransparent` state based on body class changes. - Add an event listener for `updated-setting` to update the `shadow` state. - Apply the shadow setting to the currency items using inline styles.
- Loading branch information
Showing
3 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters