Skip to content

Commit dd7770a

Browse files
authored
Merge pull request #37 from odeimaiz/feature/light-theme
Added oSparc Light theme
2 parents 0601810 + b5c74a5 commit dd7770a

File tree

8 files changed

+623
-303
lines changed

8 files changed

+623
-303
lines changed

Manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"email": "tobi@itis.swiss"
1212
}
1313
],
14-
"version": "0.4.13"
14+
"version": "0.5.0"
1515
},
1616
"provides": {
1717
"namespace": "osparc.theme",

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $ qx contrib list
1414
$ qx contrib install ITISFoundation/qx-osparc-theme
1515
```
1616

17-
now you just have to modify your `Manifest.json` to enable the theme:
17+
now you just have to modify your `compile.json` to enable the theme:
1818

1919
```json5
2020
"applications": [
@@ -56,4 +56,4 @@ Inspect the image interactively
5656

5757
```console
5858
$ docker run --entrypoint /bin/bash -i -t itisfoundation/qx-osparc-theme
59-
```
59+
```

compile.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
"applications": [
2525
{
2626
"class": "widgetbrowser.Application",
27-
// "theme": "osparc.theme.OSparcBlue",
2827
"theme": "osparc.theme.OSparcDark",
2928
"name": "widgetbrowser",
3029
"include": [
30+
"osparc.theme.OSparcLight",
3131
"osparc.theme.OSparcBlue"
3232
],
3333
"parts": {

package-lock.json

Lines changed: 380 additions & 293 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"devDependencies": {
3-
"@qooxdoo/compiler": "^1.0.0-beta.20190911-2033",
3+
"@qooxdoo/compiler": "^1.0.0-beta.20200326-1746",
44
"babel-eslint": "^8.2.6",
55
"eslint": "^4.19.1",
66
"eslint-config-qx": "^0.1.0",
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/* ************************************************************************
2+
3+
OSparc Light Theme for Qooxdoo
4+
5+
Copyright:
6+
2020 IT'IS Foundation
7+
8+
License:
9+
MIT: https://opensource.org/licenses/MIT
10+
See the LICENSE file in the project's top-level directory for details.
11+
12+
Authors:
13+
* Odei Maiz (odeimaiz)
14+
15+
Origin:
16+
This theme is based in large parts on the the Simple
17+
theme included with Qooxdoo.
18+
************************************************************************ */
19+
/**
20+
* Simple Theme
21+
*/
22+
qx.Theme.define("osparc.theme.OSparcLight", {
23+
title: "OSparc Light Theme",
24+
meta: {
25+
color: osparc.theme.osparclight.Color,
26+
decoration: osparc.theme.osparcdark.Decoration,
27+
font: osparc.theme.osparcdark.Font,
28+
appearance: osparc.theme.osparcdark.Appearance,
29+
icon: qx.theme.icon.Tango
30+
}
31+
});

source/class/osparc/theme/osparcdark/Color.js

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ qx.Theme.define("osparc.theme.osparcdark.Color", {
2323
colors: {
2424
// main
2525
"background-main": "#202020",
26+
"background-main-lighter": "#303030",
27+
"background-main-lighter+": "#373737",
2628
"light-background": "#444",
29+
"light-background+": "#555555",
2730

2831
// window
2932
"window-caption-background": "background-main",
@@ -38,12 +41,13 @@ qx.Theme.define("osparc.theme.osparcdark.Color", {
3841
"material-button-background-pressed": "#505050",
3942
"material-button-text-disabled": "text-disabled",
4043
"material-button-text": "text",
44+
4145
// material-textfield
4246
"material-textfield": "#808080",
4347
"material-textfield-focused": "#e0e0e0",
4448
"material-textfield-disabled": "#555",
4549
"material-textfield-invalid": "#a04040",
46-
"invalid":"material-textfield-invalid",
50+
"invalid": "material-textfield-invalid",
4751

4852
// backgrounds
4953
"background-selected": "#555",
@@ -57,7 +61,7 @@ qx.Theme.define("osparc.theme.osparcdark.Color", {
5761
"tabview-unselected": "#ffffff",
5862
"tabview-button-border": "#ffffff",
5963
"tabview-label-active-disabled": "#d9d9d9",
60-
"tabview-pane-background": "background-pane",
64+
"tabview-pane-background": "background-main",
6165
"tabview-button-background": "transparent",
6266
// text colors
6367
"link": "#aaa",
@@ -94,12 +98,14 @@ qx.Theme.define("osparc.theme.osparcdark.Color", {
9498
// separator
9599
"border-separator": "#808080",
96100

97-
98101
// text
99102
"text": "#bfbfbf",
100103
"text-disabled": "#808080",
101104
"text-selected": "#f0f0f0",
102-
"text-placeholder": "#404040",
105+
"text-placeholder": "text-disabled",
106+
"text-darker": "text-disabled",
107+
"contrasted-text-dark": "#222222",
108+
"contrasted-text-light": "#EEEEEE",
103109

104110
// tooltip
105111
"tooltip": "#808080",
@@ -133,6 +139,32 @@ qx.Theme.define("osparc.theme.osparcdark.Color", {
133139
"progressive-progressbar-indicator-done": "#222",
134140
"progressive-progressbar-indicator-undone": "#333",
135141
"progressive-progressbar-percent-background": "#000",
136-
"progressive-progressbar-percent-text": "#333"
142+
"progressive-progressbar-percent-text": "#333",
143+
144+
// ----- osparc related -----
145+
"workbench-edge-comp-active": "#777777",
146+
"workbench-edge-api-active": "#BBBBBB",
147+
"workbench-edge-selected": "#0000FF",
148+
"workbench-start-hint": "#505050",
149+
150+
"node-selected-background": "#666666",
151+
"node-title-text": "#DCDCDC",
152+
"node-port-text": "#BABABA",
153+
154+
"logger-debug-message": "#FFFFFF",
155+
"logger-info-message": "#FFFFFF",
156+
"logger-warning-message": "#FFFF00",
157+
"logger-error-message": "#FF0000",
158+
159+
"service-window-hint": "#808080",
160+
161+
"activitytree-background-cpu": "#2C7CCE",
162+
"activitytree-background-memory": "#358475",
163+
164+
"ready-green": "#33925A",
165+
"failed-red": "#FF2D2D",
166+
167+
"progressbar": "#60909e"
168+
// ----- osparc related -----
137169
}
138170
});
Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
/* ************************************************************************
2+
3+
OSparc Light Theme for Qooxdoo
4+
5+
Copyright:
6+
2020 IT'IS Foundation
7+
8+
License:
9+
MIT: https://opensource.org/licenses/MIT
10+
See the LICENSE file in the project's top-level directory for details.
11+
12+
Authors:
13+
* Odei Maiz (odeimaiz)
14+
15+
Origin:
16+
This theme is based in large parts on the the Simple
17+
theme included with Qooxdoo.
18+
************************************************************************ */
19+
/**
20+
* Based on osparcdark inverted colors
21+
*/
22+
qx.Theme.define("osparc.theme.osparclight.Color", {
23+
colors: {
24+
// main
25+
"background-main": "#DFDFDF",
26+
"background-main-lighter": "#CFCFCF",
27+
"background-main-lighter+": "#C8C8C8",
28+
"light-background": "#BBBBBB",
29+
"light-background+": "#AAAAAA",
30+
31+
// window
32+
"window-caption-background": "background-main",
33+
"window-caption-background-active": "light-background",
34+
"window-caption-text": "text",
35+
"window-caption-text-active": "text-selected",
36+
37+
// material-button
38+
"material-button-background": "#BFBFBF",
39+
"material-button-background-disabled": "#CFCFCF",
40+
"material-button-background-hovered": "#AFAFAF",
41+
"material-button-background-pressed": "#AFAFAF",
42+
"material-button-text-disabled": "text-disabled",
43+
"material-button-text": "text",
44+
45+
// material-textfield
46+
"material-textfield": "#7F7F7F",
47+
"material-textfield-focused": "#1F1F1F",
48+
"material-textfield-disabled": "#AAAAAA",
49+
"material-textfield-invalid": "#5FBFBF",
50+
"invalid": "material-textfield-invalid",
51+
52+
// backgrounds
53+
"background-selected": "#AAAAAA",
54+
"background-selected-disabled": "#CCCCCC",
55+
"background-selected-dark": "#BBBBBB",
56+
"background-disabled": "background-main",
57+
"background-disabled-checked": "#CCCCCC",
58+
"background-pane": "#DDDDDD",
59+
60+
// tabview
61+
"tabview-unselected": "#000000",
62+
"tabview-button-border": "#000000",
63+
"tabview-label-active-disabled": "#262626",
64+
"tabview-pane-background": "background-main",
65+
"tabview-button-background": "transparent",
66+
// text colors
67+
"link": "#555555",
68+
69+
// scrollbar
70+
"scrollbar-passive": "#CCCCCC",
71+
"scrollbar-active": "#BBBBBB",
72+
73+
// form
74+
"button": "#AAAAAA",
75+
"button-border": "#999999",
76+
"button-border-hovered": "#777777",
77+
"button-box": "#BBBBBB",
78+
"button-box-pressed": "#AAAAAA",
79+
"border-lead": "#777777",
80+
81+
// window
82+
"window-border": "#BBBBBB",
83+
"window-border-inner": "#DDDDDD",
84+
85+
// group box
86+
"white-box-border": "#BFBFBF",
87+
88+
// shadows
89+
"shadow": qx.core.Environment.get("css.rgba") ? "rgba(1.0, 1.0, 1.0, 0.4)" : "#999999",
90+
91+
// borders
92+
// 'border-main' is an alias of 'background-selected' (compatibility reasons)
93+
"border": "#B7B7B7",
94+
"border-focused": "#484848",
95+
"border-invalid": "material-textfield-invalid",
96+
"border-disabled": "#DDDDDD",
97+
98+
// separator
99+
"border-separator": "#7F7F7F",
100+
101+
// text
102+
"text": "#404040",
103+
"text-disabled": "#7F7F7F",
104+
"text-selected": "#0F0F0F",
105+
"text-placeholder": "text-disabled",
106+
"text-darker": "text-disabled",
107+
"contrasted-text-dark": "#DDDDDD",
108+
"contrasted-text-light": "#111111",
109+
110+
// tooltip
111+
"tooltip": "#7F7F7F",
112+
"tooltip-text": "#0F0F0F",
113+
114+
// table
115+
"table-header": "background-main",
116+
"table-header-foreground": "text",
117+
"table-header-border": "#777777",
118+
"table-focus-indicator": "#8A8A8A",
119+
120+
// used in table code
121+
"table-header-cell": "#DFDFDF",
122+
"table-row-background-focused-selected": "#A9A9A9",
123+
"table-row-background-focused": "#BABABA",
124+
"table-row-background-selected": "#A9A9A9",
125+
"table-row-background-even": "#DFDFDF",
126+
"table-row-background-odd": "#CFCFCF",
127+
// foreground
128+
"table-row-selected": "#0F0F0F",
129+
"table-row": "#404040",
130+
// table grid color
131+
"table-row-line": "#DDDDDD",
132+
"table-column-line": "#DDDDDD",
133+
134+
// used in progressive code
135+
"progressive-table-header": "#555555",
136+
"progressive-table-row-background-even": "#DFDFDF",
137+
"progressive-table-row-background-odd": "#CFCFCF",
138+
"progressive-progressbar-background": "#FFFFFF",
139+
"progressive-progressbar-indicator-done": "#DDDDDD",
140+
"progressive-progressbar-indicator-undone": "#CCCCCC",
141+
"progressive-progressbar-percent-background": "#FFFFFF",
142+
"progressive-progressbar-percent-text": "#CCCCCC",
143+
144+
// ----- osparc related -----
145+
"workbench-edge-comp-active": "#888888",
146+
"workbench-edge-api-active": "#444444",
147+
"workbench-edge-selected": "#FFFF00",
148+
"workbench-start-hint": "#AFAFAF",
149+
150+
"node-selected-background": "#999999",
151+
"node-title-text": "#232323",
152+
"node-port-text": "#454545",
153+
154+
"logger-debug-message": "#000000",
155+
"logger-info-message": "#000000",
156+
"logger-warning-message": "#FFFF00",
157+
"logger-error-message": "#FF0000",
158+
159+
"service-window-hint": "#7F7F7F",
160+
161+
"activitytree-background-cpu": "#D38331",
162+
"activitytree-background-memory": "#CA7B8A",
163+
164+
"ready-green": "#33925A",
165+
"failed-red": "#FF2D2D",
166+
167+
"progressbar": "#9F6F61"
168+
// ----- osparc related -----
169+
}
170+
});

0 commit comments

Comments
 (0)