1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

refactor: improved console with light theme

This commit is contained in:
2022-07-18 11:51:49 +02:00
parent c21bd6075c
commit b4d14d98db
4 changed files with 30 additions and 8 deletions

View File

@ -24,7 +24,7 @@
tabindex="0" tabindex="0"
@contextmenu.prevent="contextMenu($event, wLog)" @contextmenu.prevent="contextMenu($event, wLog)"
> >
<span class="type-datetime">{{ moment(wLog.date).format('YYYY-MM-DD HH:mm:ss') }}</span>: <span class="type-string">{{ wLog.sql }}</span> <span class="type-datetime">{{ moment(wLog.date).format('HH:mm:ss') }}</span>: <code class="query-console-log-sql">{{ wLog.sql }}</code>
</div> </div>
</div> </div>
</div> </div>
@ -156,15 +156,18 @@ onMounted(() => {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
max-height: 100%; max-height: 100%;
padding: 0 6px; padding: 0 6px 3px;
.query-console-log { .query-console-log {
padding: 1px 3px; padding: 1px 3px;
user-select: text; margin: 1px 0;
border-radius: $border-radius; border-radius: $border-radius;
&:hover,
&:focus { .query-console-log-sql {
background: $bg-color-gray; font-size: 95%;
opacity: .8;
font-weight: 700;
user-select: text;
} }
} }
} }

View File

@ -308,6 +308,13 @@
.query-console { .query-console {
border-top: 1px solid #444; border-top: 1px solid #444;
background-color: $bg-color-dark; background-color: $bg-color-dark;
.query-console-log {
&:hover,
&:focus {
background: $bg-color-gray;
}
}
} }
.tile { .tile {

View File

@ -128,6 +128,18 @@
} }
} }
.query-console {
border-top: 1px solid darken($bg-color-light-gray, 15%);
background-color: $bg-color-light;
.query-console-log {
&:hover,
&:focus {
background: $bg-color-light-gray;
}
}
}
#titlebar { #titlebar {
background: $bg-color-light; background: $bg-color-light;
box-shadow: 0 0 1px 0 #000; box-shadow: 0 0 1px 0 #000;

View File

@ -23,8 +23,8 @@ test('main window elements visibility', async () => {
const visibleSelectors = [ const visibleSelectors = [
// '#titlebar', // '#titlebar',
'#window-content', '#window-content',
'#settingbar', '#settingbar'
'#footer' // '#footer'
]; ];
for (const selector of visibleSelectors) for (const selector of visibleSelectors)