Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
9cd266cd
Commit
9cd266cd
authored
Jul 18, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i am stupid
parent
6222efeb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ColorModeToggler.module.css
ui/header/ColorModeToggler.module.css
+2
-2
ColorModeToggler.tsx
ui/header/ColorModeToggler.tsx
+2
-2
No files found.
ui/header/ColorModeToggler.module.css
View file @
9cd266cd
...
...
@@ -35,11 +35,11 @@
height
:
24px
;
border-radius
:
12px
;
position
:
absolute
;
transform
:
translate
(
4
4
px
,
4px
);
transform
:
translate
(
4px
,
4px
);
}
.thumb
[
data-checked
]
{
transform
:
translate
(
4px
,
4px
);
transform
:
translate
(
4
4
px
,
4px
);
}
.nightIcon
{
...
...
ui/header/ColorModeToggler.tsx
View file @
9cd266cd
...
...
@@ -27,14 +27,14 @@ export interface ColorModeTogglerProps
export
const
ColorModeToggler
=
forwardRef
<
ColorModeTogglerProps
,
'
input
'
>
((
props
,
ref
)
=>
{
const
ownProps
=
omitThemingProps
(
props
);
const
{
toggleColorMode
}
=
useColorMode
();
const
{
toggleColorMode
,
colorMode
}
=
useColorMode
();
const
{
state
,
getInputProps
,
getCheckboxProps
,
getRootProps
,
}
=
useCheckbox
(
ownProps
);
}
=
useCheckbox
(
{
...
ownProps
,
isChecked
:
colorMode
===
'
light
'
}
);
const
trackBg
=
useColorModeValue
(
'
blackAlpha.100
'
,
'
whiteAlpha.200
'
)
const
thumbBg
=
useColorModeValue
(
'
white
'
,
'
black
'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment