Skip to content

Commit

Permalink
ThemeSelector with 3 96x48 theme screenshots.
Browse files Browse the repository at this point in the history
Modern, TangibleDark, TangibleLight.
This closes #1. qx-compiler integration done
  • Loading branch information
adrelino committed Mar 23, 2021
1 parent fe42e43 commit 462ef67
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions source/class/qxex/Application.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ qx.Class.define("qxex.Application",
////////////
//control

var button = new qx.ui.form.Button("Hi","icon/16/apps/preferences-clock.png");// "@MaterialIcons/access_time/16");
doc.add(button,{left:300,top:50});

var widget = new qxex.ui.control.LanguageSelector();
container.addWidgetWithLabel(widget);

Expand Down
2 changes: 1 addition & 1 deletion source/class/qxex/theme/AppearanceMaterialIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ qx.Theme.define("qxex.theme.AppearanceMaterialIcons", {
width: 16
};
}
},
}
}
});
4 changes: 2 additions & 2 deletions source/class/qxex/ui/control/ThemeSelector.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Switch themes easily
* @asset(qxex/themes/40x30/*)
* @asset(qxex/themes/96x48/*)
* @asset(qx/icon/Tango/16/apps/preferences-clock.png)
* @asset(qx/icon/Oxygen/16/apps/preferences-clock.png)
*/
Expand Down Expand Up @@ -48,7 +48,7 @@ qx.Class.define("qxex.ui.control.ThemeSelector",{
}

if(type=="meta"){
this.add(new qx.ui.form.ListItem(title,"qxex/themes/40x30/"+name+".png",name));
this.add(new qx.ui.form.ListItem(title,"qxex/themes/96x48/"+name+".png",name));
}else if(type=="icon"){
this.add(new qx.ui.form.ListItem(title,"qx/icon/"+title+"/16/apps/preferences-clock.png",name));
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 462ef67

Please sign in to comment.