MCPcopy Index your code
hub / github.com/material-shell/material-shell / parseCoglColor

Function parseCoglColor

src/manager/msThemeManager.ts:51–60  ·  view source on GitHub ↗
(color: string)

Source from the content-addressed store, hash-verified

49};
50
51function parseCoglColor(color: string): Cogl.Color {
52 const c = new Cogl.Color();
53 c.init_from_4f(
54 parseInt(color.substring(1, 3), 16),
55 parseInt(color.substring(3, 5), 16),
56 parseInt(color.substring(5, 7), 16),
57 255
58 );
59 return c;
60}
61
62export class MsThemeManager extends MsManager {
63 themeContext: St.ThemeContext;

Callers 1

constructorMethod · 0.85

Calls 1

init_from_4fMethod · 0.95

Tested by

no test coverage detected