Skip to content

Commit

Permalink
Delete: 使われてない設定を削除
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Mar 21, 2024
1 parent 5670fa0 commit d8a72cc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 61 deletions.
2 changes: 0 additions & 2 deletions src-electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,6 @@ electron.ipcMain.addListener("get-settings", (_event) => {

const cyalumeSettings = store.get("cyalume-settings", {
grow: false,
colorType: "single",
singleColor: "#00ff00",
dim: false,
}) as CyalumeSettings
sendToRenderer("set-cyalume-settings", cyalumeSettings)
Expand Down
59 changes: 0 additions & 59 deletions src/inject/CustomSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ onMounted(() => {
window.electron.send("get-settings")
window.electron.receive("set-colors", setColors)
window.electron.receive("set-cyalume-settings", (value: CyalumeSettings) => {
cyalumeSingleColor.value = value.singleColor
cyalumeGrowEffectValue.value = value.grow
cyalumeDimEffectValue.value = value.dim
cyalumeColorType.value = value.colorType
cyalumeSettingReceived.value = true
})
})
Expand All @@ -56,25 +54,13 @@ const cyalumeGrowEffect = ref<HTMLInputElement>()
const cyalumeGrowEffectValue = ref(false)
const cyalumeDimEffect = ref<HTMLInputElement>()
const cyalumeDimEffectValue = ref(false)
const cyalumeColor = ref<HTMLInputElement>()
const cyalumeSingleColor = ref("#00ff00")
const resetCyalumeColor = () => {
cyalumeSingleColor.value = "#00ff00"
}
watchEffect(() => {
cyalumeColor.value?.setAttribute("value", cyalumeSingleColor.value)
})
const cyalumeColorType = ref("single")
watchEffect(() => {
if (!cyalumeSettingReceived.value) return
window.electron.send("set-cyalume-settings", {
singleColor: cyalumeSingleColor.value,
grow: cyalumeGrowEffectValue.value,
colorType: cyalumeColorType.value,
dim: cyalumeDimEffectValue.value,
})
cyalumeSingleColor.value = cyalumeSingleColor.value
})
</script>

Expand Down Expand Up @@ -127,51 +113,6 @@ watchEffect(() => {
<span>ペンライトタイム中は背景を暗くする</span>
</label>
</li>

<li class="setting-item">
<label>
<input
v-model="cyalumeColorType"
type="radio"
name="cyalume-color"
value="single"
/>
<span>単色:</span>
</label>
<label>
<input
ref="cyalumeColor"
type="color"
:value="cyalumeSingleColor"
@change="cyalumeSingleColor = cyalumeColor!.value"
/>
</label>
<span role="button" class="reset" @click="resetCyalumeColor"
>リセット(#00ff00)</span
>
</li>
<li class="setting-item">
<label>
<input
v-model="cyalumeColorType"
type="radio"
name="cyalume-color"
value="crypton"
/>
<span>クリプトン6色</span>
</label>
</li>
<li class="setting-item">
<label>
<input
v-model="cyalumeColorType"
type="radio"
name="cyalume-color"
value="follow"
/>
<span>曲に合わせる</span>
</label>
</li>
</ul>
</div>
</div>
Expand Down

0 comments on commit d8a72cc

Please sign in to comment.