dark mode start

This commit is contained in:
sadnub
2020-11-11 17:43:29 -05:00
parent 65b6aabe69
commit 478b657354
16 changed files with 180 additions and 230 deletions

View File

@@ -2,6 +2,7 @@
<div class="q-pt-none q-pb-none q-pr-xs q-pl-xs">
<q-table
dense
:table-class="{ 'table-bgcolor': !$q.dark.isActive, 'table-bgcolor-dark': $q.dark.isActive }"
class="agents-tbl-sticky"
:style="{ 'max-height': agentTableHeight }"
:data="filter"
@@ -70,7 +71,7 @@
<q-tr
@contextmenu="agentRowSelected(props.row.id, props.row.agent_id)"
:props="props"
:class="{ highlight: selectedRow === props.row.id }"
:class="rowSelectedClass(props.row.id)"
@click="agentRowSelected(props.row.id, props.row.agent_id)"
@dblclick="rowDoubleClicked(props.row.id)"
>
@@ -631,6 +632,9 @@ export default {
menuMaintenanceText(mode) {
return mode ? "Disable Maintenance Mode" : "Enable Maintenance Mode";
},
rowSelectedClass(id) {
if (this.selectedRow === id) return this.$q.dark.isActive ? "highlight-dark" : "highlight";
},
},
computed: {
...mapGetters(["selectedAgentPk", "agentTableHeight"]),