1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-02-08 15:58:45 +01:00

perf(UI): increased application border-radius

This commit is contained in:
Fabio Di Stasio 2021-06-24 21:49:46 +02:00
parent 7cc5e7b67f
commit a0a025e450
12 changed files with 26 additions and 18 deletions

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import { app, BrowserWindow, nativeImage } from 'electron'; import { app, BrowserWindow, /* session, */ nativeImage } from 'electron';
import * as path from 'path'; import * as path from 'path';
import Store from 'electron-store'; import Store from 'electron-store';
@ -38,13 +38,15 @@ async function createMainWindow () {
}); });
try { try {
if (isDevelopment) { if (isDevelopment) { //
await window.loadURL(`http://localhost:${process.env.ELECTRON_WEBPACK_WDS_PORT}`); await window.loadURL(`http://localhost:${process.env.ELECTRON_WEBPACK_WDS_PORT}`);
const { default: installExtension, VUEJS_DEVTOOLS } = require('electron-devtools-installer'); // const { default: installExtension, VUEJS3_DEVTOOLS } = require('electron-devtools-installer');
const toolName = await installExtension(VUEJS_DEVTOOLS); // const oldDevToolsID = session.defaultSession.getAllExtensions().find(ext => ext.name === 'Vue.js devtools').id;
console.log(toolName, 'installed'); // session.defaultSession.removeExtension(oldDevToolsID);
// const toolName = await installExtension(VUEJS3_DEVTOOLS);
// console.log(toolName, 'installed');
} }
else else
await window.loadURL(new URL(`file:///${path.join(__dirname, 'index.html')}`).href); await window.loadURL(new URL(`file:///${path.join(__dirname, 'index.html')}`).href);

View File

@ -63,7 +63,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.file-uploader { .file-uploader {
border-radius: 0.1rem; border-radius: $border-radius;
height: 1.8rem; height: 1.8rem;
line-height: 1.2rem; line-height: 1.2rem;
display: flex; display: flex;

View File

@ -174,6 +174,7 @@ export default {
align-content: center; align-content: center;
justify-content: center; justify-content: center;
flex-direction: column; flex-direction: column;
border-radius: 0;
&:hover { &:hover {
opacity: 1; opacity: 1;
@ -211,7 +212,7 @@ export default {
padding: 0.2rem 0.4rem; padding: 0.2rem 0.4rem;
font-size: 0.7rem; font-size: 0.7rem;
background: rgba(48, 55, 66, 0.95); background: rgba(48, 55, 66, 0.95);
border-radius: 0.1rem; border-radius: $border-radius;
color: #fff; color: #fff;
max-width: 320px; max-width: 320px;
pointer-events: none; pointer-events: none;

View File

@ -362,7 +362,7 @@ export default {
min-width: 100%; min-width: 100%;
.menu-item a { .menu-item a {
border-radius: 0.1rem; border-radius: $border-radius;
color: inherit; color: inherit;
display: block; display: block;
margin: 0 -0.4rem; margin: 0 -0.4rem;

View File

@ -311,7 +311,7 @@ export default {
.database-name, .database-name,
.misc-name { .misc-name {
&:hover { &:hover {
border-radius: 2px; border-radius: $border-radius;
} }
} }
@ -320,7 +320,7 @@ export default {
position: relative; position: relative;
&:hover { &:hover {
border-radius: 2px; border-radius: $border-radius;
} }
} }

View File

@ -362,7 +362,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.tile { .tile {
border-radius: 2px; border-radius: $border-radius;
opacity: 0.5; opacity: 0.5;
transition: background 0.2s; transition: background 0.2s;
transition: opacity 0.2s; transition: opacity 0.2s;

View File

@ -274,7 +274,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.tile { .tile {
border-radius: 2px; border-radius: $border-radius;
opacity: 0.5; opacity: 0.5;
transition: background 0.2s; transition: background 0.2s;
transition: opacity 0.2s; transition: opacity 0.2s;

View File

@ -247,7 +247,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.tile { .tile {
border-radius: 2px; border-radius: $border-radius;
opacity: 0.5; opacity: 0.5;
transition: background 0.2s; transition: background 0.2s;
transition: opacity 0.2s; transition: opacity 0.2s;

View File

@ -274,7 +274,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.tile { .tile {
border-radius: 2px; border-radius: $border-radius;
opacity: 0.5; opacity: 0.5;
transition: background 0.2s; transition: background 0.2s;
transition: opacity 0.2s; transition: opacity 0.2s;

View File

@ -42,8 +42,8 @@
<i class="mdi mdi-24px mdi-skip-previous" /> <i class="mdi mdi-24px mdi-skip-previous" />
</button> </button>
<div class="dropdown" :class="{'active': isPageMenu}"> <div class="dropdown" :class="{'active': isPageMenu}">
<div class="btn-group" @click="openPageMenu"> <div @click="openPageMenu">
<div class="btn btn-dark btn-sm mr-0 dropdown-toggle text-bold px-3"> <div class="btn btn-dark btn-sm mr-0 no-radius dropdown-toggle text-bold px-3">
{{ page }} {{ page }}
</div> </div>
<div class="menu px-3"> <div class="menu px-3">

View File

@ -22,6 +22,7 @@ $enum-color: goldenrod;
$unknown-color: gray; $unknown-color: gray;
/* Sizes */ /* Sizes */
$border-radius: 0.3rem;
$titlebar-height: 1.5rem; $titlebar-height: 1.5rem;
$settingbar-width: 3rem; $settingbar-width: 3rem;
$explorebar-width: 14rem; $explorebar-width: 14rem;

View File

@ -34,6 +34,10 @@ body {
outline: none !important; outline: none !important;
} }
.no-radius {
border-radius: 0 !important;
}
.no-border { .no-border {
outline: none !important; outline: none !important;
border: none !important; border: none !important;
@ -109,7 +113,7 @@ body {
.modal-container, .modal-container,
.modal-sm .modal-container { .modal-sm .modal-container {
padding: 0; padding: 0;
border-radius: 3px; border-radius: $border-radius;
.modal-header { .modal-header {
padding: 0.4rem 0.8rem; padding: 0.4rem 0.8rem;
@ -117,7 +121,7 @@ body {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
border-radius: 3px 3px 0 0; border-radius: $border-radius $border-radius 0 0;
.modal-title { .modal-title {
overflow: hidden; overflow: hidden;