Skip to content

Commit

Permalink
Bugfixes on default theme
Browse files Browse the repository at this point in the history
  • Loading branch information
achhabra2 committed May 3, 2021
1 parent 866f73d commit 1e30c9b
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 48 deletions.
4 changes: 2 additions & 2 deletions packrd/packed-packr.go

Large diffs are not rendered by default.

Binary file modified screenshots/scoreboard-ss-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/scoreboard-ss-4.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 3 additions & 40 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,7 @@
document.getElementById("away-img").src = data.Away.Img
}
updateMapCSS(data)
// if (data.HomeGames >= 3) {
// document.getElementById("home-winner").classList.add("winner-background")
// } else {
// if(document.getElementById("home-winner").classList.contains("winner-background")) {
// document.getElementById("home-winner").classList.remove("winner-background")
// }
// }
// if (data.AwayGames >= 3) {
// document.getElementById("away-winner").classList.add("winner-background")
// } else {
// if(document.getElementById("away-winner").classList.contains("winner-background")) {
// document.getElementById("away-winner").classList.remove("winner-background")
// }
// }

let homeRow = document.getElementById("home-row")
let awayRow = document.getElementById("away-row")
homeRow.cells[0].innerText = acronym(data.Home.Name)
Expand Down Expand Up @@ -106,27 +93,6 @@
awayCell.innerText = set.Away
}
}
function DarkModeToggle() {
document.getElementById("home-winner").classList.toggle("dark-background");
document.getElementById("away-winner").classList.toggle("dark-background");
document.getElementById("chroma-box").classList.remove("hidden");
document.getElementById("home-total").classList.toggle("has-text-light");
document.getElementById("away-total").classList.toggle("has-text-light");
document.getElementById("home-stats").classList.toggle("has-text-light");
document.getElementById("away-stats").classList.toggle("has-text-light");
}

function TransparentToggle() {
document.getElementById("home-winner").classList.toggle("is-transparent");
document.getElementById("away-winner").classList.toggle("is-transparent");
document.getElementById("chroma-box").className = "chroma-box";
}

function WhiteToggle() {
document.getElementById("home-winner").className = "left home-box";
document.getElementById("away-winner").className = "right away-box";
// document.getElementById("chroma-box").className = "hidden";
}

function connect() {
var ws = new WebSocket('ws://localhost:8080/ws');
Expand Down Expand Up @@ -265,7 +231,7 @@
<div class="content">
<strong id="home-name" class="blue-text team-name">Blue Team</strong>
<br>
<span id="home-stats" class="is-size-6">(0-0)</span>
<span id="home-stats" class="is-size-6 has-text-light">(0-0)</span>
</div>
</div>
<div class="three">
Expand Down Expand Up @@ -311,7 +277,7 @@
<p>
<strong id="away-name" class="gold-text team-name">Gold Team</strong>
<br>
<span id="away-stats" class="is-size-6">(0-0)</span>
<span id="away-stats" class="is-size-6 has-text-light">(0-0)</span>
</p>
</div>
</div>
Expand All @@ -323,9 +289,6 @@
</div>
</article>
</div>
<button id="dark-mode" class="button bottom">Dark Background</button>
<button id="transparent-mode" class="button bottom">Transparent Background</button>
<button id="white-mode" class="button bottom">White Background</button>
</body>

</html>
20 changes: 16 additions & 4 deletions static/scoreboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

body {
font-family: PirulenRg-Regular !important;
overflow: hidden;
overflow: hidden !important;
line-height: 1 !important;
}

Expand Down Expand Up @@ -72,22 +72,23 @@ body {
}

.home-box {
background-color: white;
background-color: #080808;
border: 5px solid #0192ff;
border-radius: 6px;
display: block;
padding: 0.5rem;
}

.away-box {
background-color: white;
background-color: #080808;
border: 5px solid #f2ae12;
border-radius: 6px;
display: block;
padding: 0.5rem;
}

.score-text {
color: #f0f0f0;
transform: translateY(-5%) translateX(-5%);
line-height: 70px;
font-size: 3.5em;
Expand Down Expand Up @@ -267,4 +268,15 @@ table, td {
border: 2px solid #a055fb;
border-radius: 6px;
box-shadow: 2px 2px 6px #a055fb;
}
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
3 changes: 1 addition & 2 deletions ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ func BGLMatchSelection(w fyne.Window) *fyne.Container {
themeSelect := widget.NewSelect(themes, func(theme string) {
selectedTheme = theme
})
themeSelect.SetSelected("default")
themeSelectContainer := container.NewHBox(layout.NewSpacer(), themeSelectLabel, themeSelect, layout.NewSpacer())
// blueTeamSelect.Resize(fyne.NewSize(500, 100))
blueTeamContainer.Hide()
Expand Down Expand Up @@ -170,8 +171,6 @@ func BGLMatchSelection(w fyne.Window) *fyne.Container {
}
}

blueTeamContainer.Refresh()
goldTeamContainer.Refresh()
blueTeamContainer.Show()
goldTeamContainer.Show()
})
Expand Down

0 comments on commit 1e30c9b

Please sign in to comment.