Skip to content

Commit 53a2205

Browse files
committed
fix: initialize the default settings
1 parent a45731f commit 53a2205

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/components/screens/Main.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export default function Main({
5757
}
5858

5959
useKeyboardMain(states)
60-
console.log(size.width)
6160

6261
const arrowPosition = () => {
6362
if (palette.size <= 3) return size.width / (1.8 - palette.size * 0.1)

src/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export function initialize() {
77
fs.mkdirSync(`/home/${userName}/Pictures/colors`, { recursive: true })
88

99
if (!fs.existsSync(`/home/${userName}/.config/color-hunter/settings.json`)) {
10-
const initConf: string = `{\n"savePath":"/home/${userName}/Pictures/colors/"\n}`
10+
const initConf: string = `{\n"savePath":"/home/${userName}/Pictures/colors/",\n"sizePalette":3\n}`
1111
fs.mkdirSync(`/home/${userName}/.config/color-hunter/`, { recursive: true })
1212
fs.writeFileSync(`/home/${userName}/.config/color-hunter/settings.json`, initConf, 'utf8')
1313
}

0 commit comments

Comments
 (0)