Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shadow to widget #35

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

hootanht
Copy link

Fixes #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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add shadow
1 participant