Merge pull request #245 from mrxiaozhuox/master
This commit is contained in:
4 files changed
+3
-2
No files matched your search
File renamed without changes.
File renamed without changes.
@@ -88,7 +88,7 @@ impl DesktopConfig {
|
|||||||
|
|
||||||
impl DesktopConfig {
|
impl DesktopConfig {
|
||||||
pub(crate) fn with_default_icon(mut self) -> Self {
|
pub(crate) fn with_default_icon(mut self) -> Self {
|
||||||
let bin: &[u8] = include_bytes!("default_icon.bin");
|
let bin: &[u8] = include_bytes!("./assets/default_icon.bin");
|
||||||
let rgba = Icon::from_rgba(bin.to_owned(), 460, 460).expect("image parse failed");
|
let rgba = Icon::from_rgba(bin.to_owned(), 460, 460).expect("image parse failed");
|
||||||
self.window.window.window_icon = Some(rgba);
|
self.window.window.window_icon = Some(rgba);
|
||||||
self
|
self
|
||||||
|
|||||||
@@ -102,10 +102,11 @@ export class Interpreter {
|
|||||||
SetAttribute(root, field, value, ns) {
|
SetAttribute(root, field, value, ns) {
|
||||||
const name = field;
|
const name = field;
|
||||||
const node = this.nodes[root];
|
const node = this.nodes[root];
|
||||||
|
console.log(ns);
|
||||||
if (ns === "style") {
|
if (ns === "style") {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
node.style[name] = value;
|
node.style[name] = value;
|
||||||
} else if (ns != null || ns !== undefined) {
|
} else if (ns != null || ns != undefined) {
|
||||||
node.setAttributeNS(ns, name, value);
|
node.setAttributeNS(ns, name, value);
|
||||||
} else {
|
} else {
|
||||||
switch (name) {
|
switch (name) {
|
||||||
|
|||||||
Reference in new issue
Block a user