GithubHelp home page GithubHelp logo

Comments (14)

MightyPork avatar MightyPork commented on June 8, 2024

good idea, i think we should add this

from espterm-firmware.

cpsdqs avatar cpsdqs commented on June 8, 2024

Client-side support added (for colored buttons): espterm/espterm-front-end@ce46ad7

from espterm-firmware.

MightyPork avatar MightyPork commented on June 8, 2024

kinda. i think this should be appended to the buttons update topic, it'll usually change together with the labels

from espterm-firmware.

cpsdqs avatar cpsdqs commented on June 8, 2024

Yeah you can just split each entry by \x02 or just have the array repeat again for the color values or something and have the color there (you do need a null value though)
Also, if we add a user CSS feature, we could also consider adding user JS as well (and also add an espterm wrapper object or something in the global scope)

from espterm-firmware.

MightyPork avatar MightyPork commented on June 8, 2024

how about each button text field starts with the color (two words, like the bg and fg colors) followed by the text and terminated by 0x01?

I don't have storage for user CSS, the entire RW area is 2kB large and already half used (though i imagine it could be expanded if need be)

from espterm-firmware.

cpsdqs avatar cpsdqs commented on June 8, 2024

Sure, as long as it has a null color

from espterm-firmware.

MightyPork avatar MightyPork commented on June 8, 2024

null color? does that mean "use default"?

from espterm-firmware.

cpsdqs avatar cpsdqs commented on June 8, 2024

yes (null as in button.style.background = null)

from espterm-firmware.

MightyPork avatar MightyPork commented on June 8, 2024

? screenshot_20171018_215327

from espterm-firmware.

cpsdqs avatar cpsdqs commented on June 8, 2024

(what are you asking? xD)

from espterm-firmware.

MightyPork avatar MightyPork commented on June 8, 2024

still not sure what you mean by null background ...

from espterm-firmware.

cpsdqs avatar cpsdqs commented on June 8, 2024

I meant you set the style attribute's background to null such that it falls back to whatever you set in the stylesheet

from espterm-firmware.

MightyPork avatar MightyPork commented on June 8, 2024

...hmm
there can be nothing in the stylesheet, if we always send a color --- and support 24bit

from espterm-firmware.

MightyPork avatar MightyPork commented on June 8, 2024

screenshot_20171030_204925

from espterm-firmware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.