Skip to content

Commit 410a867

Browse files
authored
Merge pull request #269 from magjac/new-look
New look
2 parents 8ecdc65 + f235a9e commit 410a867

File tree

6 files changed

+29
-11
lines changed

6 files changed

+29
-11
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
### Changed
1414
* Updated [Graphviz](https://graphviz.org/) from version [2.50.0](https://gitlab.com/graphviz/graphviz/-/blob/main/CHANGELOG.md?ref_type=heads#2500-2021-12-04) to version [9.0.0](https://gitlab.com/graphviz/graphviz/-/blob/main/CHANGELOG.md?ref_type=heads#900-2023-09-11) through [@hpcc-js/wasm](https://github.com/hpcc-systems/hpcc-js-wasm) version [2.14.1](https://github.com/hpcc-systems/hpcc-js-wasm/blob/trunk/CHANGELOG.md#2141-2023-10-12), containing a lot of improvements and fixes, including a fix for:
1515
* Failure of arrowhead and arrowtail to respect penwidth ([Graphviz issue #372](https://gitlab.com/graphviz/graphviz/issues/372))
16+
* New look with blueish primary and greenish secondary color and a toolbar with a Graphviz logo, a blueish grid on white as background and slightly larger text buttons.
17+
* More pronounced highlighting in the DOT source of nodes and edges selected in the graph, using shades of the blueish primary color.
1618

1719
### Fixed
1820
* Lost characters when typing fast and DOT parsing errors occur #236

public/GraphvizLogo.png

126 KB
Loading

src/AboutDialog.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ const styles = theme => ({
1717
display: 'flex',
1818
justifyContent: 'space-between',
1919
},
20-
copyright: {
21-
marginTop: theme.spacing(5),
22-
},
2320
});
2421

2522
class AboutDialog extends React.Component {
@@ -145,9 +142,6 @@ class AboutDialog extends React.Component {
145142
{graphvizVersion}
146143
</a>
147144
</DialogContentText>
148-
<DialogContentText variant='caption' className={classes.copyright}>
149-
&copy; 2018-2022 Magnus Jacobsson Interactive AB
150-
</DialogContentText>
151145
</DialogContent>
152146
</Dialog>
153147
</div>

src/ButtonAppBar.js

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Toolbar } from '@mui/material';
66
import { Typography } from '@mui/material';
77
import { Button } from '@mui/material';
88
import { IconButton } from '@mui/material';
9+
import { Icon } from '@mui/material';
910
import { Menu as MenuIcon } from '@mui/icons-material';
1011
import { Add as AddIcon } from '@mui/icons-material';
1112
import { OpenInBrowser as OpenInBrowserIcon } from '@mui/icons-material';
@@ -23,6 +24,11 @@ const styles = {
2324
root: {
2425
flexGrow: 1,
2526
},
27+
toolbar: {
28+
backgroundSize: '16px 16px',
29+
backgroundImage: 'linear-gradient(to right, #4ed1f860 1px, transparent 1px), linear-gradient(to bottom, #4ed1f860 1px, transparent 1px)',
30+
backgroundColor: 'white',
31+
},
2632
flex: {
2733
flexGrow: 1,
2834
},
@@ -36,6 +42,16 @@ const styles = {
3642
color: 'inherit',
3743
},
3844
},
45+
imageIcon: {
46+
display: 'block',
47+
height: '100%',
48+
verticalAlign: 'middle',
49+
},
50+
iconRoot: {
51+
height: '64px',
52+
width: '72px',
53+
verticalAlign: 'middle',
54+
},
3955
};
4056

4157
function ButtonAppBar(props) {
@@ -106,7 +122,7 @@ function ButtonAppBar(props) {
106122
<AppBar
107123
position="static"
108124
>
109-
<Toolbar id="toolbar">
125+
<Toolbar id="toolbar" className={classes.toolbar}>
110126
<IconButton
111127
id="menu"
112128
className={classes.menuButton}
@@ -168,6 +184,9 @@ function ButtonAppBar(props) {
168184
color="inherit"
169185
className={classes.flex}
170186
>
187+
<Icon classes={{root: classes.iconRoot}}>
188+
<img className={classes.imageIcon} src="GraphvizLogo.png" width="64" height="64"/>
189+
</Icon>
171190
Graphviz Visual Editor
172191
</Typography>
173192
<IconButton
@@ -205,19 +224,22 @@ function ButtonAppBar(props) {
205224
1:1
206225
</Button>
207226
<Button
227+
size="large"
208228
color="inherit"
209229
onClick={handleInsertClick}
210230
>
211231
Insert
212232
</Button>
213233
<Button
214234
color="inherit"
235+
size="large"
215236
onClick={handleNodeFormatClick}
216237
>
217238
Node format
218239
</Button>
219240
<Button
220241
color="inherit"
242+
size="large"
221243
onClick={handleEdgeFormatClick}
222244
>
223245
Edge format

src/TextEditor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const styles = {
1515
},
1616
aceSelectedWord: {
1717
position: 'absolute',
18-
background: 'rgb(250, 250, 255)',
19-
border: '1px solid rgb(200, 200, 250)',
18+
background: '#d8f4fd',
19+
border: '1px solid #02c1ff',
2020
},
2121
};
2222

src/withRoot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import { CssBaseline } from '@mui/material';
77
const theme = createTheme({
88
palette: {
99
primary: {
10-
main: "#ffffcc",
10+
main: "#4ed1f8", // Blueish
1111
},
1212
secondary: {
13-
main: "#99ccff",
13+
main: "#19ccaa", // Greenish
1414
},
1515
},
1616
components: {

0 commit comments

Comments
 (0)