@xyd-js/theme-gusto 0.0.0-build-0016109-20250820105436 → 0.0.0-build-98ffa49-20250820144609

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyd-js/theme-gusto",
3
- "version": "0.0.0-build-0016109-20250820105436",
3
+ "version": "0.0.0-build-98ffa49-20250820144609",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -20,11 +20,11 @@
20
20
  "react": "^19.1.0",
21
21
  "react-dom": "^19.1.0",
22
22
  "react-router": "^7.7.1",
23
- "@xyd-js/atlas": "0.0.0-build-0016109-20250820105436",
24
- "@xyd-js/ui": "0.0.0-build-0016109-20250820105436",
25
- "@xyd-js/components": "0.0.0-build-0016109-20250820105436",
26
- "@xyd-js/framework": "0.0.0-build-0016109-20250820105436",
27
- "@xyd-js/themes": "0.0.0-build-0016109-20250820105436"
23
+ "@xyd-js/atlas": "0.0.0-build-98ffa49-20250820144609",
24
+ "@xyd-js/ui": "0.0.0-build-98ffa49-20250820144609",
25
+ "@xyd-js/components": "0.0.0-build-98ffa49-20250820144609",
26
+ "@xyd-js/framework": "0.0.0-build-98ffa49-20250820144609",
27
+ "@xyd-js/themes": "0.0.0-build-98ffa49-20250820144609"
28
28
  },
29
29
  "devDependencies": {},
30
30
  "scripts": {
package/src/theme.tsx CHANGED
@@ -5,7 +5,7 @@ import {css} from "@linaria/core";
5
5
  import {ColorSchemeButton} from "@xyd-js/components/writer";
6
6
  import {UISidebar} from "@xyd-js/ui";
7
7
  import {BaseTheme} from "@xyd-js/themes"
8
- import {FwLogo, useSettings} from "@xyd-js/framework/react";
8
+ import {FwLogo, useShowColorSchemeButton} from "@xyd-js/framework/react";
9
9
  import syntaxThemeClassic from "@xyd-js/components/coder/themes/classic.js"
10
10
 
11
11
  import "./imports.css"
@@ -52,14 +52,14 @@ export default class ThemeGusto extends BaseTheme {
52
52
  }
53
53
 
54
54
  function _SidebarTop() {
55
- const settings = useSettings()
56
-
55
+ const showColorSchemeButton = useShowColorSchemeButton()
56
+
57
57
  return <>
58
58
  <UISidebar.Item ghost>
59
59
  <div className={styles.SidebarTop}>
60
60
  <FwLogo/>
61
61
  <div>
62
- {settings?.theme?.appearance?.colorScheme !== false && <ColorSchemeButton/>}
62
+ {showColorSchemeButton && <ColorSchemeButton/>}
63
63
  </div>
64
64
  </div>
65
65
  </UISidebar.Item>