Compare commits
No commits in common. 'development' and 'master' have entirely different histories.
developmen
...
master
19 changed files with 18 additions and 197 deletions
@ -1,31 +0,0 @@ |
|||||||
@font-face { |
|
||||||
font-family: "Iosevka"; |
|
||||||
src: url("#{$font-path}/iosevka/Iosevka-Regular.ttf"); |
|
||||||
} |
|
||||||
@font-face { |
|
||||||
font-family: "Iosevka"; |
|
||||||
src: url("#{$font-path}/iosevka/Iosevka-Italic.ttf"); |
|
||||||
font-style: italic; |
|
||||||
} |
|
||||||
@font-face { |
|
||||||
font-family: "Iosevka"; |
|
||||||
src: url("#{$font-path}/iosevka/Iosevka-Bold.ttf"); |
|
||||||
font-weight: bold; |
|
||||||
} |
|
||||||
@font-face { |
|
||||||
font-family: "Iosevka"; |
|
||||||
src: url("#{$font-path}/iosevka/Iosevka-BoldItalic.ttf"); |
|
||||||
font-weight: bold; |
|
||||||
font-style: italic; |
|
||||||
} |
|
||||||
@font-face { |
|
||||||
font-family: "Iosevka"; |
|
||||||
src: url("#{$font-path}/iosevka/Iosevka-Light.ttf"); |
|
||||||
font-weight: 100; |
|
||||||
} |
|
||||||
@font-face { |
|
||||||
font-family: "Iosevka"; |
|
||||||
src: url("#{$font-path}/iosevka/Iosevka-LightItalic.ttf"); |
|
||||||
font-weight: 100; |
|
||||||
font-style: italic; |
|
||||||
} |
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,36 +1,15 @@ |
|||||||
import React, {useState, useEffect} from "react"; |
import React from "react"; |
||||||
|
|
||||||
import Toggle from "../shared/Toggle"; |
|
||||||
|
|
||||||
const General = () => { |
const General = () => { |
||||||
const [restoreWindow, setRestoreWindow] = useState(false); |
|
||||||
|
|
||||||
useEffect(() => { |
|
||||||
(async () => { |
|
||||||
setRestoreWindow(await window.appSettings.get("restoreWindow", false)); |
|
||||||
})(setRestoreWindow); |
|
||||||
}, []); |
|
||||||
|
|
||||||
const changeRestoreWindow = event => { |
|
||||||
const value = event.target.checked === true; |
|
||||||
setRestoreWindow(value); |
|
||||||
window.appSettings.set("restoreWindow", value); |
|
||||||
}; |
|
||||||
|
|
||||||
const reset = () => { |
const reset = () => { |
||||||
window.appSettings.reset(); |
window.appSettings.reset(); |
||||||
} |
} |
||||||
|
|
||||||
return ( |
return ( |
||||||
<> |
<section style={{textAlign : "center"}}> |
||||||
<section className="grid mb"> |
<button className="danger" onClick={reset}>reset all settings to default</button> |
||||||
<label>Restore window size:</label> |
</section> |
||||||
<Toggle checked={restoreWindow} onChange={changeRestoreWindow} /> |
|
||||||
</section> |
|
||||||
<section style={{textAlign : "center"}}> |
|
||||||
<button className="danger" onClick={reset}>reset all settings to default</button> |
|
||||||
</section> |
|
||||||
</> |
|
||||||
); |
); |
||||||
}; |
}; |
||||||
|
|
||||||
|
@ -1,12 +0,0 @@ |
|||||||
import React from "react"; |
|
||||||
|
|
||||||
const Toggle = ({...props}) => { |
|
||||||
return ( |
|
||||||
<label className="toggle"> |
|
||||||
<input type="checkbox" {...props} /> |
|
||||||
<span className="slider round"></span> |
|
||||||
</label> |
|
||||||
); |
|
||||||
}; |
|
||||||
|
|
||||||
export default Toggle; |
|
Loading…
Reference in new issue