Skip to content

Commit 3fb49f7

Browse files
committed
colors
1 parent e18e000 commit 3fb49f7

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

services/static-webserver/client/source/class/osparc/theme/ColorDark.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ qx.Theme.define("osparc.theme.ColorDark", {
5050
"text-darker": "rgba(255, 255, 255, 1)",
5151
"contrasted-text-dark": "rgba(216, 216, 216, 1)",
5252
"contrasted-text-light": "rgba(255, 255, 255, 1)",
53+
"text-complementary": "rgba(40, 40, 40, 1)",
5354
"link": "rgba(10, 182, 255, 1)",
5455

5556
// shadows

services/static-webserver/client/source/class/osparc/theme/ColorLight.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ qx.Theme.define("osparc.theme.ColorLight", {
5050
"text-darker": "rgba(20, 20, 20, 1)",
5151
"contrasted-text-dark": "rgba(20, 20, 20, 1)",
5252
"contrasted-text-light": "rgba(40, 40, 40, 1)",
53+
"text-complementary": "rgba(216, 216, 216, 1)",
5354
"link": "rgba(10, 182, 255, 1)",
5455

5556
// shadows

services/static-webserver/client/source/class/osparc/ui/basic/AvatarGroup.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
qx.Class.define("osparc.ui.basic.AvatarGroup", {
2020
extend: qx.ui.core.Widget,
2121

22-
construct: function(size = 30, orientation = "right", maxWidth = 150) {
22+
construct: function(size = 30, orientation = "left", maxWidth = 150) {
2323
this.base(arguments);
2424

2525
this.set({
@@ -80,16 +80,13 @@ qx.Class.define("osparc.ui.basic.AvatarGroup", {
8080
let avatar;
8181

8282
if (user.isExtra) {
83-
const bgColor = qx.theme.manager.Color.getInstance().resolve("text");
84-
const textColor = qx.theme.manager.Color.getInstance().resolve("contrasted-text-dark");
8583
avatar = new qx.ui.basic.Label(user.name);
8684
avatar.set({
8785
width: this.__avatarSize,
8886
height: this.__avatarSize,
8987
textAlign: "center",
90-
backgroundColor: bgColor,
91-
textColor: textColor,
92-
font: "bold",
88+
backgroundColor: "text",
89+
textColor: "text-complementary",
9390
toolTipText: `${user.name.replace("+", "")} more`
9491
});
9592

0 commit comments

Comments
 (0)