mirror of
https://github.com/frappe/books.git
synced 2024-11-08 23:00:56 +00:00
incr: remove min restrictions
- minor color update - increase dashboard colors by 100
This commit is contained in:
parent
fc4a856f52
commit
c5fdcf521b
2
main.ts
2
main.ts
@ -77,8 +77,6 @@ export class Main {
|
|||||||
const options: BrowserWindowConstructorOptions = {
|
const options: BrowserWindowConstructorOptions = {
|
||||||
width: this.WIDTH,
|
width: this.WIDTH,
|
||||||
height: this.HEIGHT,
|
height: this.HEIGHT,
|
||||||
minWidth: this.WIDTH,
|
|
||||||
minHeight: this.HEIGHT,
|
|
||||||
title: this.title,
|
title: this.title,
|
||||||
titleBarStyle: 'hidden',
|
titleBarStyle: 'hidden',
|
||||||
trafficLightPosition: { x: 16, y: 16 },
|
trafficLightPosition: { x: 16, y: 16 },
|
||||||
|
@ -7,11 +7,11 @@
|
|||||||
<!-- Chart Legend -->
|
<!-- Chart Legend -->
|
||||||
<div class="flex text-base gap-8" v-if="hasData">
|
<div class="flex text-base gap-8" v-if="hasData">
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<span class="w-3 h-3 rounded-sm inline-block bg-blue-400" />
|
<span class="w-3 h-3 rounded-sm inline-block bg-blue-500" />
|
||||||
<span class="text-gray-900">{{ t`Inflow` }}</span>
|
<span class="text-gray-900">{{ t`Inflow` }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<span class="w-3 h-3 rounded-sm inline-block bg-pink-400" />
|
<span class="w-3 h-3 rounded-sm inline-block bg-pink-500" />
|
||||||
<span class="text-gray-900">{{ t`Outflow` }}</span>
|
<span class="text-gray-900">{{ t`Outflow` }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -77,7 +77,7 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
chartData() {
|
chartData() {
|
||||||
let data = this.data;
|
let data = this.data;
|
||||||
let colors = [uicolors.blue['400'], uicolors.pink['400']];
|
let colors = [uicolors.blue['500'], uicolors.pink['500']];
|
||||||
if (!this.hasData) {
|
if (!this.hasData) {
|
||||||
data = dummyData;
|
data = dummyData;
|
||||||
colors = [uicolors.gray['200'], uicolors.gray['100']];
|
colors = [uicolors.gray['200'], uicolors.gray['100']];
|
||||||
|
@ -1,8 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex flex-col">
|
<div class="overflow-hidden h-screen" style="width: var(--w-desk)">
|
||||||
<PageHeader :title="t`Dashboard`" />
|
<PageHeader :title="t`Dashboard`" />
|
||||||
|
|
||||||
<div class="overflow-y-hidden no-scrollbar flex flex-col">
|
<div class="no-scrollbar overflow-auto h-full">
|
||||||
|
<div
|
||||||
|
style="min-width: var(--w-desk-fixed); min-height: var(--h-app)"
|
||||||
|
class="overflow-auto"
|
||||||
|
>
|
||||||
<Cashflow class="p-4" />
|
<Cashflow class="p-4" />
|
||||||
<hr />
|
<hr />
|
||||||
<UnpaidInvoices />
|
<UnpaidInvoices />
|
||||||
@ -14,6 +18,7 @@
|
|||||||
<hr />
|
<hr />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -61,7 +61,7 @@ export default {
|
|||||||
chartData() {
|
chartData() {
|
||||||
const points = [this.data.map((d) => d.balance)];
|
const points = [this.data.map((d) => d.balance)];
|
||||||
const colors = [
|
const colors = [
|
||||||
{ positive: uicolors.blue['400'], negative: uicolors.pink['400'] },
|
{ positive: uicolors.blue['500'], negative: uicolors.pink['500'] },
|
||||||
];
|
];
|
||||||
const format = (value) => fyo.format(value ?? 0, 'Currency');
|
const format = (value) => fyo.format(value ?? 0, 'Currency');
|
||||||
const yMax = getYMax(points);
|
const yMax = getYMax(points);
|
||||||
|
@ -73,9 +73,9 @@
|
|||||||
class="absolute inset-0 h-4"
|
class="absolute inset-0 h-4"
|
||||||
:class="
|
:class="
|
||||||
invoice.count && invoice.color == 'blue'
|
invoice.count && invoice.color == 'blue'
|
||||||
? 'bg-blue-400'
|
? 'bg-blue-500'
|
||||||
: invoice.hasData
|
: invoice.hasData
|
||||||
? 'bg-pink-400'
|
? 'bg-pink-500'
|
||||||
: 'bg-gray-400'
|
: 'bg-gray-400'
|
||||||
"
|
"
|
||||||
:style="`width: ${invoice.barWidth}%`"
|
:style="`width: ${invoice.barWidth}%`"
|
||||||
|
@ -54,17 +54,19 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
|
--w-app: 1200px;
|
||||||
--w-sidebar: 12rem;
|
--w-sidebar: 12rem;
|
||||||
--w-desk: calc(100vw - 12rem);
|
--w-desk: calc(100vw - var(--w-sidebar));
|
||||||
|
--w-desk-fixed: calc(var(--w-app) - var(--w-sidebar));
|
||||||
--w-scrollbar: 0.5rem;
|
--w-scrollbar: 0.5rem;
|
||||||
|
|
||||||
|
|
||||||
/* Row Heights */
|
/* Row Heights */
|
||||||
--h-row-smallest: 2rem;
|
--h-row-smallest: 2rem;
|
||||||
--h-row-small: 2.5rem;
|
--h-row-small: 2.5rem;
|
||||||
--h-row-mid: 3rem;
|
--h-row-mid: 3rem;
|
||||||
--h-row-large: 3.5rem;
|
--h-row-large: 3.5rem;
|
||||||
--h-row-largest: 4rem;
|
--h-row-largest: 4rem;
|
||||||
|
--h-app: 800px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.w-form {
|
.w-form {
|
||||||
|
@ -57,9 +57,7 @@ module.exports = {
|
|||||||
'span-full': '1 / -1',
|
'span-full': '1 / -1',
|
||||||
},
|
},
|
||||||
colors: {
|
colors: {
|
||||||
brand: '#2490EF',
|
black: '#1E293B',
|
||||||
'brand-100': '#f4f9ff',
|
|
||||||
black: '#112B42',
|
|
||||||
gray: {
|
gray: {
|
||||||
25: '#fcfcfd',
|
25: '#fcfcfd',
|
||||||
50: '#f8f9fc',
|
50: '#f8f9fc',
|
||||||
@ -134,7 +132,7 @@ module.exports = {
|
|||||||
300: '#99d0ff',
|
300: '#99d0ff',
|
||||||
400: '#66b8ff',
|
400: '#66b8ff',
|
||||||
500: '#33a1ff',
|
500: '#33a1ff',
|
||||||
600: '#0089ff',
|
600: '#2490ef',
|
||||||
700: '#006ecc',
|
700: '#006ecc',
|
||||||
800: '#005299',
|
800: '#005299',
|
||||||
900: '#003766',
|
900: '#003766',
|
||||||
|
Loading…
Reference in New Issue
Block a user