Skip to content

Commit 843d531

Browse files
authored
Merge pull request #96 from GitGud-org/boldStyle
Bold style
2 parents 3d1025f + f9f23b4 commit 843d531

File tree

2 files changed

+26
-8
lines changed

2 files changed

+26
-8
lines changed

styleFile.js

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,35 @@
11
module.exports = {
22
// setting to show or not show GitGud logo at top of app
3-
showLogo: false, // accepted values include [true, false]
3+
showLogo: true, // accepted values include [true, false]
44

55
// setting for default text colors
6-
defaultColor: 'green', // accepted values include ['red', 'blue', 'white', 'green', etc.]
6+
defaultColor: 'white', // accepted values include ['red', 'blue', 'white', 'green', etc.]
77

88
// setting for accent text and line colors
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

17+
// setting to change boldness of git tree
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']
1722
}
23+
24+
25+
26+
27+
28+
29+
30+
31+
32+
33+
34+
35+
//here for example presentation video

ui.js

Lines changed: 4 additions & 4 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} = 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 THE 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%"
@@ -113,7 +113,7 @@ const App = () => {
113113
<Text color={defaultColor}>Newest to Oldest </Text>
114114
</Box>
115115
<Box flexDirection="row">
116-
<Text color={defaultColor} bold>
116+
<Text color={defaultColor} bold={changeBold}>
117117
{visualProcessed.sorted}
118118
</Text>
119119
<Text> </Text>

0 commit comments

Comments
 (0)