style improvement on Label, FileView, GridView, system menu and app Panel

This commit is contained in:
DanyLE
2022-07-05 13:22:51 +02:00
parent b2ce9ec978
commit e63cae1550
9 changed files with 40 additions and 14 deletions

View File

@ -468,7 +468,8 @@ namespace OS {
v.text = v.text.substring(0, 9) + "...";
}*/
v.iconclass = v.iconclass ? v.iconclass : v.type;
v.icon = v.icon;
if(v.icon)
v.iconclass = undefined;
items.push(v);
});
(this.refs.listview as ListViewTag).data = items;
@ -489,7 +490,10 @@ namespace OS {
}
if(!v.text)
v.text = v.filename;
v.iconclass = v.iconclass ? v.iconclass : v.type;
if(v.icon)
v.iconclass = undefined;
const row = [
v,
{
@ -550,7 +554,8 @@ namespace OS {
v.open = false;
}
v.iconclass = v.iconclass ? v.iconclass : v.type;
v.icon = v.icon;
if(v.icon)
v.iconclass = undefined;
return nodes.push(v);
});
return nodes;

View File

@ -346,6 +346,9 @@ namespace OS {
* @memberof SimpleGridCellTag
*/
protected ondatachange(): void {
const label = (this.refs.cell as LabelTag);
label.icon = undefined;
label.iconclass = undefined;
(this.refs.cell as LabelTag).set(this.data);
}

View File

@ -386,14 +386,14 @@ namespace OS {
* @memberof SimpleMenuEntryTag
*/
set icon(v: string) {
$(this.refs.container).removeClass("fix_padding");
//$(this.refs.container).removeClass("fix_padding");
if (!v) {
return;
}
//$(this).attr("icon", v);
const label = this.refs.label as LabelTag;
label.icon = v;
$(this.refs.container).addClass("fix_padding");
//$(this.refs.container).addClass("fix_padding");
}
/**