Skip to content

Commit aa46ef9

Browse files
author
pseudocode88
committed
Add icon and credits
1 parent a50e888 commit aa46ef9

File tree

6 files changed

+33
-50
lines changed

6 files changed

+33
-50
lines changed

assets/logo-1000.png

26.3 KB
Loading

assets/logo.icns

21.7 KB
Binary file not shown.

index.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,4 +441,17 @@ button {
441441
color: var(--content-secondary);
442442
margin: 0;
443443
text-align: right;
444+
}
445+
446+
.Credits-Title {
447+
font-size: 16px;
448+
font-weight: 900;
449+
color: var(--content-muted);
450+
margin-bottom: 4px;
451+
}
452+
453+
.Credits-Creator {
454+
font-size: 12px;
455+
font-weight: 500;
456+
color: var(--content-muted);
444457
}

index.html

Lines changed: 3 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -193,51 +193,10 @@ <h2>Account Settings</h2>
193193
</div>
194194
</section>
195195

196-
<!-- <section class="Value">
197-
<p>Risk: <span id="risk">0.00</span></p>
198-
<hr />
199-
<p>Margin: <span id="margin">0.00</span></p>
200-
</section>
201-
<hr />
202-
203-
<section class="Size">
204-
<div>
205-
<label>Stop Loss</label>
206-
<input type="text" id="sl" value="100" />
207-
</div>
208-
209-
<div>
210-
<label>Stop Loss</label>
211-
<input type="text" id="sl" value="100" />
212-
</div>
213-
214-
<div>
215-
<label>Position Size</label>
216-
<input type="text" id="ps" value="100" />
217-
</div>
218-
219-
<div>
220-
<label>Leverage</label>
221-
<input type="text" id="lev" value="10" />
196+
<div class="Credits">
197+
<p class="Credits-Title">Trader Bruh - v1.1</p>
198+
<p class="Credits-Creator">by @PseudoCode88</p>
222199
</div>
223-
</section>
224-
225-
<hr />
226-
227-
<section class="Settings">
228-
<div class="Settings__Capital">
229-
<label>Capital</label>
230-
<input type="text" id="capital" value="100" />
231-
</div>
232-
<div class="Settings__Risk">
233-
<label>Min% Risk</label>
234-
<input type="text" id="min-risk" value="3" placeholder="Min %" />
235-
</div>
236-
<div class="Settings__Risk">
237-
<label>Max% Risk</label>
238-
<input type="text" id="max-risk" value="5" placeholder="Max %" />
239-
</div>
240-
</section> -->
241200
</main>
242201

243202
<script type="text/javascript" src="calc.js"></script>

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ const createWindow = () => {
88
webPreferences: {
99
nodeIntegration: true,
1010
contextIsolation: false
11-
}
11+
},
12+
icon: 'assets/logo-1000.png'
1213
})
1314

1415
win.resizable = true;
@@ -17,6 +18,8 @@ const createWindow = () => {
1718
win.loadFile('index.html')
1819
}
1920

21+
app.setName("Trader Bruh");
22+
2023
app.whenReady().then(() => {
2124
createWindow()
2225

package.json

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "ps-calc",
3-
"version": "1.0.0",
2+
"name": "trader-bruh",
3+
"version": "1.1",
44
"description": "Position Size Calculator",
55
"main": "index.js",
66
"keywords": [
@@ -23,13 +23,21 @@
2323
"makers": [
2424
{
2525
"name": "@electron-forge/maker-dmg",
26-
"config": {}
26+
"config": {
27+
"name": "Trader bruh",
28+
"icon": "assets/logo.icns"
29+
}
2730
}
28-
]
31+
],
32+
"packagerConfig": {
33+
"icon": "assets/logo.icns",
34+
"name": "Trader Bruh",
35+
"iconSize": "10"
36+
}
2937
}
3038
},
3139
"dependencies": {
3240
"jquery": "^3.7.0",
3341
"nedb": "^1.8.0"
3442
}
35-
}
43+
}

0 commit comments

Comments
 (0)