Skip to content

Commit

Permalink
Grey out disabled icons when native icons are used
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverschwendener committed Nov 22, 2018
1 parent 0dc740a commit dcba876
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 3 additions & 8 deletions main.html
Original file line number Diff line number Diff line change
Expand Up @@ -356,15 +356,10 @@ <h1 class="setting-section-title">User Settings</h1>
<input class="setting-text-input" type="text" v-model="config.hotKey" v-on:blur="updateUserConfig">
</div>
</div>
<div class="setting-group">
<div class="setting-title">Use native icons</div>
<div class="setting">
<input type="checkbox" v-model="config.useNativeIcons" v-on:change="updateUserConfig">
</div>
</div>
<div class="setting-group">
<div class="setting-title">Icon set</div>
<div class="setting">
Use native icons <input type="checkbox" v-model="config.useNativeIcons" v-on:change="updateUserConfig">
<table class="setting-table">
<thead>
<tr>
Expand All @@ -376,7 +371,7 @@ <h1 class="setting-section-title">User Settings</h1>
<tbody>
<tr>
<td>App icon</td>
<td class="text-center" v-html="config.iconSet.appIcon"></td>
<td class="text-center" :class="{ 'disabled' : config.useNativeIcons }" v-html="config.iconSet.appIcon"></td>
<td><input class="setting-text-input" :disabled="config.useNativeIcons" type="text" v-model="config.iconSet.appIcon" v-on:blur="updateUserConfig"></td>
</tr>
<tr>
Expand All @@ -401,7 +396,7 @@ <h1 class="setting-section-title">User Settings</h1>
</tr>
<tr>
<td>File icon</td>
<td class="text-center" v-html="config.iconSet.fileIcon"></td>
<td class="text-center" :class="{ 'disabled' : config.useNativeIcons }" v-html="config.iconSet.fileIcon"></td>
<td><input class="setting-text-input" :disabled="config.useNativeIcons" type="text" v-model="config.iconSet.fileIcon" v-on:blur="updateUserConfig"></td>
</tr>
<tr>
Expand Down
4 changes: 4 additions & 0 deletions styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ td.slim {
width: 50px;
}

td.disabled {
opacity: 0.5;
}

td > svg {
fill: var(--text-color);
height: 25px;
Expand Down

0 comments on commit dcba876

Please sign in to comment.