MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / darkenPrimaryColor

Method darkenPrimaryColor

src/theme/builder.js:290–294  ·  view source on GitHub ↗

* This method is used to set a darkened primary color.

()

Source from the content-addressed store, hash-verified

288 * This method is used to set a darkened primary color.
289 */
290 darkenPrimaryColor() {
291 this.darkenedPrimaryColor = Color(this.primaryColor)
292 .darken(0.4)
293 .hex.toString();
294 }
295
296 matches(id) {
297 return this.id.toLowerCase() === id.toLowerCase();

Callers 1

restoreThemeFunction · 0.80

Calls 3

ColorClass · 0.85
darkenMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected