Skip to content

Commit

Permalink
Fix kiwi-workspace-background z-index
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsOnlyBinary committed Jan 12, 2024
1 parent 1b7be21 commit 25c0dd7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 14 deletions.
24 changes: 18 additions & 6 deletions src/components/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
'kiwi-wrap--touch': $state.ui.is_touch,
}"
:data-activebuffer="buffer ? buffer.name.toLowerCase() : ''"
:data-theme="theme"
class="kiwi-wrap kiwi-theme-bg"
@click="emitDocumentClick"
@paste.capture="emitBufferPaste"
Expand Down Expand Up @@ -52,8 +53,14 @@
:is="fallbackComponent"
v-else-if="!activeComponent"
v-bind="fallbackComponentProps"
class="kiwi-workspace-component"
/>
<component
:is="activeComponent"
v-else
v-bind="activeComponentProps"
class="kiwi-workspace-component"
/>
<component :is="activeComponent" v-else v-bind="activeComponentProps" />
</div>
</template>
<AvatarCommon />
Expand All @@ -75,6 +82,7 @@ import AvatarCommon from '@/components/UserAvatarCommon';
import { State as SidebarState } from '@/components/Sidebar';
import * as Notifications from '@/libs/Notifications';
import * as bufferTools from '@/libs/bufferTools';
import ThemeManager from '@/libs/ThemeManager';
import Logger from '@/libs/Logger';
let log = Logger.namespace('App.vue');
Expand Down Expand Up @@ -118,6 +126,10 @@ export default {
buffer() {
return this.$state.getActiveBuffer();
},
theme() {
let themeMgr = ThemeManager.instance();
return themeMgr.currentTheme().name.toLowerCase();
},
},
created() {
this.listenForActiveComponents();
Expand Down Expand Up @@ -433,11 +445,11 @@ body {
.kiwi-workspace-background {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: -1;
inset: 0;
}
.kiwi-workspace-component {
position: relative;
}
.kiwi-statebrowser {
Expand Down
1 change: 0 additions & 1 deletion src/components/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ export default {
display: flex;
flex-direction: column;
overflow: hidden;
z-index: 100;
}
.kiwi-sidebar.kiwi-sidebar-section-settings {
Expand Down
5 changes: 2 additions & 3 deletions static/themes/elite/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@
background: var(--comp-statebrowser-bg);
}

.kiwi-statebrowser-newnetwork {
.kiwi-statebrowser-newnetwork a {
opacity: 0.75;
color: var(--brand-primary);
}

.kiwi-statebrowser-newnetwork a:hover {
Expand Down Expand Up @@ -112,9 +113,7 @@
background-color: #26323a;
}


.kiwi-messagelist {
background: #3b4850;
color: var(--brand-primary);
}

Expand Down
5 changes: 1 addition & 4 deletions static/themes/nightswatch/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
--brand-primary-hover: #2d2d2d;
--brand-midtone: #1b1b1b;
--brand-darktone: #000;
--brand-default-bg: #1b1b1b;
--brand-default-bg: #000;
--brand-default-fg: #f1f1f1;

/* Warning colors */
Expand Down Expand Up @@ -207,9 +207,6 @@
}

/* Message list */
.kiwi-messagelist {
background: #000;
}
.kiwi-messagelist .kiwi-messagelist-body {
color: #adadad;
}
Expand Down

0 comments on commit 25c0dd7

Please sign in to comment.