From 2fd48db5d48e591957ab0e3a36aa92fdd9145020 Mon Sep 17 00:00:00 2001 From: Kevin Boos Date: Wed, 17 Apr 2024 14:32:48 -0700 Subject: [PATCH] restore code --- Cargo.lock | 60 ++++++++++++++++----------------- src/shared/html_or_plaintext.rs | 10 +++--- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b55bc51d..03b2f0b2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1651,7 +1651,7 @@ checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" [[package]] name = "jni-sys" version = "0.4.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" [[package]] name = "js-sys" @@ -1833,7 +1833,7 @@ dependencies = [ [[package]] name = "makepad-derive-live" version = "0.4.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "makepad-live-id", "makepad-micro-proc-macro", @@ -1842,7 +1842,7 @@ dependencies = [ [[package]] name = "makepad-derive-wasm-bridge" version = "0.4.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "makepad-micro-proc-macro", ] @@ -1850,7 +1850,7 @@ dependencies = [ [[package]] name = "makepad-derive-widget" version = "0.4.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "makepad-live-id", "makepad-micro-proc-macro", @@ -1859,7 +1859,7 @@ dependencies = [ [[package]] name = "makepad-draw" version = "0.6.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "ab_glyph_rasterizer", "makepad-html", @@ -1873,17 +1873,17 @@ dependencies = [ [[package]] name = "makepad-futures" version = "0.4.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" [[package]] name = "makepad-futures-legacy" version = "0.7.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" [[package]] name = "makepad-html" version = "0.4.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "makepad-live-id", ] @@ -1891,12 +1891,12 @@ dependencies = [ [[package]] name = "makepad-http" version = "0.4.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" [[package]] name = "makepad-live-compiler" version = "0.5.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "makepad-derive-live", "makepad-live-tokenizer", @@ -1906,7 +1906,7 @@ dependencies = [ [[package]] name = "makepad-live-id" version = "0.4.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "makepad-live-id-macros", ] @@ -1914,7 +1914,7 @@ dependencies = [ [[package]] name = "makepad-live-id-macros" version = "0.4.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "makepad-micro-proc-macro", ] @@ -1922,7 +1922,7 @@ dependencies = [ [[package]] name = "makepad-live-tokenizer" version = "0.4.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "makepad-live-id", "makepad-math", @@ -1932,7 +1932,7 @@ dependencies = [ [[package]] name = "makepad-markdown" version = "0.4.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "makepad-live-id", ] @@ -1940,17 +1940,17 @@ dependencies = [ [[package]] name = "makepad-math" version = "0.4.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" [[package]] name = "makepad-micro-proc-macro" version = "0.4.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" [[package]] name = "makepad-micro-serde" version = "0.4.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "makepad-micro-serde-derive", ] @@ -1958,7 +1958,7 @@ dependencies = [ [[package]] name = "makepad-micro-serde-derive" version = "0.4.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "makepad-micro-proc-macro", ] @@ -1966,12 +1966,12 @@ dependencies = [ [[package]] name = "makepad-objc-sys" version = "0.4.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" [[package]] name = "makepad-platform" version = "0.6.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "jni-sys", "makepad-futures", @@ -1988,7 +1988,7 @@ dependencies = [ [[package]] name = "makepad-shader-compiler" version = "0.5.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "makepad-live-compiler", ] @@ -1996,7 +1996,7 @@ dependencies = [ [[package]] name = "makepad-vector" version = "0.4.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "ttf-parser", ] @@ -2004,7 +2004,7 @@ dependencies = [ [[package]] name = "makepad-wasm-bridge" version = "0.4.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "makepad-derive-wasm-bridge", "makepad-live-id", @@ -2013,7 +2013,7 @@ dependencies = [ [[package]] name = "makepad-widgets" version = "0.6.0" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "makepad-derive-widget", "makepad-draw", @@ -2026,7 +2026,7 @@ dependencies = [ [[package]] name = "makepad-windows" version = "0.51.1" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "windows-core 0.51.1 (git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace)", "windows-targets", @@ -2035,7 +2035,7 @@ dependencies = [ [[package]] name = "makepad-zune-core" version = "0.2.14" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "bitflags 2.4.1", ] @@ -2043,7 +2043,7 @@ dependencies = [ [[package]] name = "makepad-zune-inflate" version = "0.2.54" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "simd-adler32", ] @@ -2051,7 +2051,7 @@ dependencies = [ [[package]] name = "makepad-zune-jpeg" version = "0.3.17" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "makepad-zune-core", ] @@ -2059,7 +2059,7 @@ dependencies = [ [[package]] name = "makepad-zune-png" version = "0.2.1" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "makepad-zune-core", "makepad-zune-inflate", @@ -4778,7 +4778,7 @@ dependencies = [ [[package]] name = "windows-core" version = "0.51.1" -source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#2773ac838fc5aaeba4c0695fa0b72d776352ebab" +source = "git+https://github.com/kevinaboos/makepad?branch=fix_panic_improve_html_whitespace#40a470859b50cfae552e5bd8cda92e19c776d3d2" dependencies = [ "windows-targets", ] diff --git a/src/shared/html_or_plaintext.rs b/src/shared/html_or_plaintext.rs index 52491909..2c1d1e46 100644 --- a/src/shared/html_or_plaintext.rs +++ b/src/shared/html_or_plaintext.rs @@ -161,11 +161,11 @@ impl LiveHook for MatrixHtmlSpan { // Set the Label's foreground text color and background color if let Some(fg_color) = self.fg_color { self.ll.apply_over(cx, live!{ draw_text: { color: (fg_color) } }); - }; - if let Some(bg_color) = self.bg_color { - self.ll.apply_over(cx, live!{ draw_bg: { color: (bg_color) } }); - }; - + } + if let Some(_bg_color) = self.bg_color { + log!("TODO: Html span/font background color is not yet implemented.") + // self.apply_over(cx, live!{ draw_bg: { color: (bg_color) } }); + } // TODO: need to handle labelĀ events to handle the spoiler, so we can toggle it upon click. } } else {