-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09848be
commit 586e89e
Showing
10 changed files
with
150 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,6 @@ class CanvasButton { | |
|
||
destroy() { | ||
this.onClick = null; | ||
this.img = null; | ||
} | ||
|
||
setCoordinates(x, y) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
class ThemeManager { | ||
constructor() { | ||
let CYAN; | ||
let BLUE; | ||
let ROSE; | ||
let YELLOW; | ||
let GREEN; | ||
let WHITE; | ||
let GRAY; | ||
let SKY; | ||
} | ||
|
||
getTheme(themeColor) { | ||
let defaultColor; | ||
let activeColor; | ||
|
||
switch (themeColor) { | ||
case "blue": | ||
defaultColor = [0, 86, 179]; | ||
activeColor = [0, 123, 255]; | ||
break; | ||
case "red": | ||
defaultColor = [244, 63, 94]; | ||
activeColor = [199, 44, 72]; | ||
break; | ||
case "cyan": | ||
defaultColor = [5, 156, 176]; | ||
activeColor = [6, 182, 212]; | ||
break; | ||
case "yellow": | ||
defaultColor = [200, 155, 19]; | ||
activeColor = [250, 204, 21]; | ||
break; | ||
case "green": | ||
defaultColor = [60, 141, 96]; | ||
activeColor = [74, 222, 128]; | ||
break; | ||
case "white": | ||
defaultColor = [255, 255, 255]; | ||
activeColor = [230, 230, 230]; | ||
break; | ||
case "gray": | ||
defaultColor = [107, 114, 128]; | ||
activeColor = [74, 74, 74]; | ||
break; | ||
default: | ||
defaultColor = [74, 144, 226]; | ||
activeColor = [28, 100, 242]; | ||
break; | ||
} | ||
return { defaultColor, activeColor }; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters