Skip to content

Commit

Permalink
Settings window redesign
Browse files Browse the repository at this point in the history
  • Loading branch information
evsar3 committed Jul 8, 2020
1 parent a478e14 commit a6fb5cc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/renderer/components/MainWindow/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export default {
settings () {
const window = windowManager.createNew('settings-window', '', '/index.html#settings', null, {
height: 210,
height: 250,
width: 500,
useContentSize: true,
frame: false,
Expand Down
15 changes: 10 additions & 5 deletions src/renderer/components/SettingsWindow/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
<input type="text" autofocus placeholder="eg. C:\Program Files\SSHFS-Win\bin\sshfs-win.exe" v-model="data.sshfsBinary">
</div>

<div class="form-item">
<label>
<input type="checkbox" v-model="data.startupWithOS"> <span>Startup with windows</span>
</label>
<div class="form-item" style="margin: 10px 0">
<label>Startup with windows <toggle-button style="float: right;" :color="toggleButtonColor" v-model="data.startupWithOS" sync labels></toggle-button></label>
</div>

<div class="footer">
Expand All @@ -25,14 +23,17 @@ import { remote } from 'electron'
import Window from '@/components/Window'
import { ToggleButton } from 'vue-js-toggle-button'
const windowManager = remote.require('electron-window-manager')
const app = remote.require('electron').app
export default {
name: 'settings-window',
components: {
Window
Window,
ToggleButton
},
methods: {
Expand Down Expand Up @@ -62,6 +63,10 @@ export default {
data () {
return {
toggleButtonColor: {
checked: '#2486d8',
unchecked: 'rgba(255, 255, 255, 0.1)'
},
loginItemSettings: {
args: [
'--systray'
Expand Down

0 comments on commit a6fb5cc

Please sign in to comment.