Skip to content

Commit

Permalink
Fix zui theme copy
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Jan 21, 2024
1 parent 71c1e96 commit e539216
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Sources/zui/Zui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,8 @@ class Zui {
}
set t(theme: Theme) {
if (this.t != null) {
for (let key in theme) {
if (key == "theme_") continue;
if (key.startsWith("set_")) continue;
if (key.startsWith("get_")) key = key.substr(4);
for (let key of Object.getOwnPropertyNames(Theme.prototype)) {
if (key == "constructor") continue;
let t_: any = this.t;
let theme_: any = theme;
t_[key] = theme_[key];
Expand Down

0 comments on commit e539216

Please sign in to comment.