Skip to content

Commit

Permalink
rework file manager and package manager buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Frontesque committed Apr 6, 2023
1 parent c03145d commit 87fcf5f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
7 changes: 6 additions & 1 deletion src/renderer/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@

<style>
/* :root { color-scheme: dark; } */ /* Basic Dark Theme */
:root {
--primary: #8867c0;
}
body::-webkit-scrollbar {
width: 0.25em;
}
Expand Down Expand Up @@ -83,7 +88,7 @@ section {
border: 2px solid rgba(255,255,255,0.1);
}
.primaryButton {
border: 2px solid #8867c0;
border: 2px solid var(--primary);
}
</style>

Expand Down
6 changes: 3 additions & 3 deletions src/renderer/pages/tools/apps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</v-card-title>
<v-card-actions>
<div v-for="(item, i) in actions" :key="i" style="margin-right: 0.5em;">
<v-btn rounded :color="item.color" @click="item.action()" :disabled="selected == null && item.requireSelected != false"><v-icon v-text="item.icon" style="margin-right: 0.5em;" />{{ item.name }}</v-btn>
<v-btn :style="selected ? `border: 2px solid ${item.color};` : ''" rounded @click="item.action()" :disabled="selected == null && item.requireSelected != false"><v-icon v-text="item.icon" style="margin-right: 0.5em;" />{{ item.name }}</v-btn>
</div>
</v-card-actions>
<v-checkbox v-model="showSystem" label="Show System Apps" style="margin-left: 1em;" />
Expand Down Expand Up @@ -91,13 +91,13 @@ export default {
{
name: "Enable",
icon: "mdi-plus",
color: "primary",
color: "green",
action: this.enable,
},
{
name: "Disable",
icon: "mdi-minus",
color: "primary",
color: "yellow",
action: this.disable,
},
{
Expand Down
3 changes: 1 addition & 2 deletions src/renderer/pages/tools/files.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<v-text-field outlined rounded v-model="path" label="Path" style="margin: 0 1em -1.5em 1em" disabled />
<v-card-actions>
<div v-for="(item, i) in actions" :key="i" style="margin-right: 0.5em;">
<v-btn rounded :color="item.color" @click="item.action()" :disabled="selected == null && item.requireSelected != false"><v-icon v-text="item.icon" style="margin-right: 0.5em;" />{{ item.name }}</v-btn>
<v-btn :style="selected ? `border: 2px solid ${item.color};` : ''" rounded @click="item.action()" :disabled="selected == null && item.requireSelected != false"><v-icon v-text="item.icon" style="margin-right: 0.5em;" />{{ item.name }}</v-btn>
</div>
</v-card-actions>

Expand Down Expand Up @@ -83,7 +83,6 @@ export default {
{
name: "Back",
icon: "mdi-arrow-up",
color: "primary",
action: this.back,
requireSelected: false,
},
Expand Down

0 comments on commit 87fcf5f

Please sign in to comment.