File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -1313,6 +1313,24 @@ export default function ControlPanel({
1313
1313
< i className = "fa-regular fa-calendar-check" />
1314
1314
</ button >
1315
1315
</ Tooltip >
1316
+ < Divider layout = "vertical" margin = "8px" />
1317
+ < Tooltip content = "Change theme" position = "bottom" >
1318
+ < button
1319
+ className = "py-1 px-2 hover-2 rounded text-xl -mt-0.5"
1320
+ onClick = { ( ) => {
1321
+ const body = document . body ;
1322
+ if ( body . hasAttribute ( "theme-mode" ) ) {
1323
+ if ( body . getAttribute ( "theme-mode" ) === "light" ) {
1324
+ menu [ "View" ] [ "Theme" ] . children [ 1 ] [ "Dark" ] ( ) ;
1325
+ } else {
1326
+ menu [ "View" ] [ "Theme" ] . children [ 0 ] [ "Light" ] ( ) ;
1327
+ }
1328
+ }
1329
+ } }
1330
+ >
1331
+ < i className = "fa-solid fa-circle-half-stroke" />
1332
+ </ button >
1333
+ </ Tooltip >
1316
1334
</ div >
1317
1335
< button
1318
1336
onClick = { ( ) => invertLayout ( "header" ) }
You can’t perform that action at this time.
0 commit comments