mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Show unrated puzzles different, dark theme adjustments
This commit is contained in:
parent
f3b82961dc
commit
abff623194
@ -26,6 +26,10 @@
|
|||||||
@include S(border-radius, $globalBorderRadius);
|
@include S(border-radius, $globalBorderRadius);
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
@include DarkThemeOverride {
|
||||||
|
background: $accentColorDark;
|
||||||
|
}
|
||||||
|
|
||||||
input.search {
|
input.search {
|
||||||
color: #333;
|
color: #333;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -60,6 +64,10 @@
|
|||||||
@include PlainText;
|
@include PlainText;
|
||||||
@include S(margin-right, 10px);
|
@include S(margin-right, 10px);
|
||||||
|
|
||||||
|
@include DarkThemeOverride {
|
||||||
|
color: #bbbbc4;
|
||||||
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
@include S(width, 15px);
|
@include S(width, 15px);
|
||||||
@include S(height, 15px);
|
@include S(height, 15px);
|
||||||
@ -311,6 +319,9 @@
|
|||||||
&.stage--hard {
|
&.stage--hard {
|
||||||
color: $colorRedBright;
|
color: $colorRedBright;
|
||||||
}
|
}
|
||||||
|
&.stage--unknown {
|
||||||
|
color: #888;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -357,10 +357,7 @@ export class PuzzleMenuState extends TextualGameState {
|
|||||||
stats.classList.add("stats");
|
stats.classList.add("stats");
|
||||||
elem.appendChild(stats);
|
elem.appendChild(stats);
|
||||||
|
|
||||||
if (
|
if (!["official", "easy", "medium", "hard"].includes(this.activeCategory)) {
|
||||||
puzzle.downloads > 3 &&
|
|
||||||
!["official", "easy", "medium", "hard"].includes(this.activeCategory)
|
|
||||||
) {
|
|
||||||
const difficulty = document.createElement("div");
|
const difficulty = document.createElement("div");
|
||||||
difficulty.classList.add("difficulty");
|
difficulty.classList.add("difficulty");
|
||||||
|
|
||||||
@ -371,7 +368,10 @@ export class PuzzleMenuState extends TextualGameState {
|
|||||||
difficulty.innerText = completionPercentage + "%";
|
difficulty.innerText = completionPercentage + "%";
|
||||||
stats.appendChild(difficulty);
|
stats.appendChild(difficulty);
|
||||||
|
|
||||||
if (puzzle.difficulty < 0.2) {
|
if (puzzle.difficulty === null) {
|
||||||
|
difficulty.classList.add("stage--unknown");
|
||||||
|
difficulty.innerText = T.puzzleMenu.difficulties.unknown;
|
||||||
|
} else if (puzzle.difficulty < 0.2) {
|
||||||
difficulty.classList.add("stage--easy");
|
difficulty.classList.add("stage--easy");
|
||||||
difficulty.innerText = T.puzzleMenu.difficulties.easy;
|
difficulty.innerText = T.puzzleMenu.difficulties.easy;
|
||||||
} else if (puzzle.difficulty > 0.6) {
|
} else if (puzzle.difficulty > 0.6) {
|
||||||
|
@ -176,6 +176,7 @@ puzzleMenu:
|
|||||||
easy: Easy
|
easy: Easy
|
||||||
medium: Medium
|
medium: Medium
|
||||||
hard: Hard
|
hard: Hard
|
||||||
|
unknown: Unrated
|
||||||
|
|
||||||
validation:
|
validation:
|
||||||
title: Invalid Puzzle
|
title: Invalid Puzzle
|
||||||
|
Loading…
Reference in New Issue
Block a user