We can now access the global from other globals

This commit is contained in:
Olivier Goffart 2022-02-24 15:41:59 +01:00 committed by Olivier Goffart
parent 0dc188f328
commit 9a6c306017
2 changed files with 12 additions and 12 deletions

View file

@ -60,12 +60,12 @@ export global StyleMetrics := {
property<length> layout-spacing: 8px;
property<length> layout-padding: 8px;
property<length> text-cursor-width: 2px;
property<color> window-background: white; //FIXME: Palette.white does not compile (cannot access globals from other globals #175)
property<color> default-text-color: #201f1e; // neutralDark
property<brush> textedit-background: white;
property<color> textedit-text-color: #323130; //Palette.neutralPrimary;
property<brush> textedit-background-disabled: #f3f2f1; //Palette.neutralLighter;
property<color> textedit-text-color-disabled: #a19f9d;//Palette.neutralTertiary;
property<color> window-background: Palette.white;
property<color> default-text-color: Palette.neutralDark;
property<brush> textedit-background: Palette.white;
property<color> textedit-text-color: Palette.neutralPrimary;
property<brush> textedit-background-disabled: Palette.neutralLighter;
property<color> textedit-text-color-disabled: Palette.neutralTertiary;
}
export Button := Rectangle {

View file

@ -21,12 +21,12 @@ export global StyleMetrics := {
property<length> layout-spacing: 5px;
property<length> layout-padding: 5px;
property<length> text-cursor-width: 2px;
property<color> window-background: #ecedeb; //FIXME: Palette.window-background does not compile (cannot access globals from other globals #175)
property<color> default-text-color: #090909;
property<brush> textedit-background: white; //Palette.base-background-color;
property<color> textedit-text-color: #090909;//Palette.text-color;
property<brush> textedit-background-disabled: white; //Palette.neutralLighter;
property<color> textedit-text-color-disabled: lightgray;// Palette.text-color-disabled;
property<color> window-background: Palette.window-background;
property<color> default-text-color: Palette.text-color;
property<brush> textedit-background: Palette.base-background-color;
property<color> textedit-text-color: Palette.text-color;
property<brush> textedit-background-disabled: white;
property<color> textedit-text-color-disabled: Palette.text-color-disabled;
}
export Button := Rectangle {