Skip to content

Commit cc60dfd

Browse files
committed
feat(border) added to styleFile to change around
1 parent 1378b26 commit cc60dfd

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

styleFile.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@ module.exports = {
99
accentColor: 'red', // accepted values include ['red', 'blue', 'white', 'green', etc.]
1010

1111
// setting to determine whether app dynamically adjusts to screen resizing; setting to false may improve performance
12-
appResize: true, // acepted values include [true, false]
12+
appResize: true, // accepted values include [true, false]
1313

1414
// setting to to determine whether or not app shows git flags by staged/unstaged files
15-
showFlag: false, // acepted values include [true, false]
15+
showFlag: false, // accepted values include [true, false]
1616

1717
// setting to change boldness of git tree
18-
changeBold: true //accepted values include [true, false]
18+
changeBold: true, // accepted values include [true, false]
19+
20+
// setting to change the border style
21+
changeBorder: 'bold' // accepted values are ['single', 'double', 'round', 'bold']
1922
}
2023

2124

ui.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const gitStatusProcess = require('./actions/gitStatusProcess')
1818
const gitBranchVisualPull = require('./actions/gitBranchVisualPull')
1919
const gitBranchVisualProcess = require('./actions/gitBranchVisualProcess')
2020

21-
const {showLogo, defaultColor, accentColor, appResize, changeBold} = require('./styleFile')
21+
const {showLogo, defaultColor, accentColor, appResize, changeBold, changeBorder} = require('./styleFile')
2222

2323
const App = () => {
2424
const [status, setStatus] = useState("");
@@ -55,7 +55,7 @@ const App = () => {
5555
<Box flexDirection="column" minHeight={appheight}>
5656
{showLogo && <Logo />}
5757
<Box
58-
borderStyle="round"
58+
borderStyle={changeBorder} //HERE IS HTE CURRENT BORDER TO CHANGE
5959
borderColor={accentColor}
6060
className="full-app"
6161
height={20}
@@ -97,7 +97,7 @@ const App = () => {
9797
</Box>
9898
<Box
9999
className="gitBranch"
100-
borderStyle="round"
100+
borderStyle={changeBorder} //ALSO HERE
101101
borderColor={accentColor}
102102
className="left-box"
103103
width="65%"

0 commit comments

Comments
 (0)