Skip to content

Commit 0983427

Browse files
author
Matthias Rütten
authored
Merge pull request #24 from codecentric/minimal-ui-improvements
A little more compact, slightly different header and footer, no more …
2 parents f75cfda + f918b7d commit 0983427

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

src/renderer/app.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ html {
44
body {
55
margin: 0;
66
font-family: 'IBM Plex Mono', monospace;
7+
-webkit-font-smoothing: antialiased;
78
}
89

910
button {
@@ -16,3 +17,7 @@ button {
1617
transform: rotate(360deg);
1718
}
1819
}
20+
21+
::-webkit-scrollbar {
22+
display: none;
23+
}

src/renderer/components/layout/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const closeApp = () => {
1111
}
1212

1313
export const Footer = () => (
14-
<Flex flexWrap='wrap' justifyContent='flex-end' bg='white' sx={{ overflow: 'hidden', borderTop: '1px solid', borderColor: 'shadow' }}>
14+
<Flex flexWrap='wrap' justifyContent='flex-end' variant='barGradient' sx={{ overflow: 'hidden', borderTop: '1px solid', borderColor: 'shadow' }}>
1515
<RouterLink to='/config' title='Settings'>
1616
<Box p={2} color='gray' sx={{ ':hover': { color: 'black' } }}>
1717
<SettingsIcon fontSize='small' />

src/renderer/components/layout/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react'
22
import { Box, Heading } from 'rebass'
33

44
export const Header = () => (
5-
<Box p={2} bg='white' sx={{ borderBottom: '1px solid', overflow: 'hidden', borderColor: 'shadow' }}>
5+
<Box p={2} variant='barGradient' sx={{ borderBottom: '1px solid', overflow: 'hidden', borderColor: 'shadow' }}>
66
<Heading textAlign='center' fontWeight='bold' fontSize={2}>
77
Merge Requests
88
</Heading>

src/renderer/components/list/MergeRequestGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface MergeRequestGroupProps {
88
export const MergeRequestGroup: React.FunctionComponent<MergeRequestGroupProps> = ({ label, children }) => (
99
<Box>
1010
<Box py={1} px={2} sx={{ position: 'sticky', top: 0, borderBottom: '1px solid', borderColor: 'shadow' }} bg='siteBackground'>
11-
<Text fontWeight='bold' color='blackTinted' letterSpacing={1} sx={{ textTransform: 'uppercase' }} fontSize={1}>
11+
<Text fontWeight='bold' color='blackTinted' letterSpacing={1} sx={{ textTransform: 'uppercase' }} fontSize={0}>
1212
{label}
1313
</Text>
1414
</Box>

src/renderer/components/theme.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const theme = {
22
breakpoints: ['40em', '52em', '64em'],
3-
fontSizes: [12, 14, 16, 24],
3+
fontSizes: [10, 12, 16, 24],
44
colors: {
55
siteBackground: '#f5f5f5',
66
blue: '#192CFD',
@@ -38,6 +38,10 @@ export const theme = {
3838
width: '2.25rem',
3939
height: '2.25rem',
4040
},
41+
barGradient: {
42+
backgroundColor: 'white',
43+
backgroundImage: 'linear-gradient(white, #d2d2da4f)',
44+
},
4145
},
4246
text: {
4347
uppercase: {

0 commit comments

Comments
 (0)