Comments (10)
i'm confused, what exactly are you missing there? you can already use the style property like any other property 🤔 Are you looking for a <style>
tag?
from eww.
@elkowar He wants to mention {{vars}} in the style
property.
Lemme show u:
<eww>
<definitions>
<def name="main">
<label text="yes this" style="color: {{color}};"/>
</def>
</definitions>
<variables>
<var name="color">#ebdbb2</var>
</variables>
<windows>
<window name="main_window" stacking="fg" focusable="false" screen="1">
<geometry anchor="center" x="1700px" y="110px" width="350px" height="170px"/>
<widget>
<main/>
</widget>
</window>
</windows>
</eww>
And then be able to run eww update color=#282828
to update the label
text color.
from eww.
Is that not possible currently? 🤔 if so, thats a bug
from eww.
I think you can do this, might play around with it to test et
from eww.
I don't think it is, i made a var called color with the value "red"
, and the logs say that it got an error:
[src/eww_state.rs:34] Error while updating UI based after state change: <data>:1:22'' is not a valid color name
This is from debug
:
style": AttrValue([Primitive("background-color: "), Expr(color), Primitive(";")]),
and state
:
color: "red"
from eww.
Hmm, I have a widget that uses attributes in style quite a bit & it works fine, maybe It is unique to vars?, What happens if you put #f00 in color?
from eww.
The exact same error
from eww.
That's a bug then
from eww.
Is this still an issue?
from eww.
I'll close this, as there hasn't been a response in over a year
from eww.
Related Issues (20)
- [BUG] 68GB logfile HOT 1
- Having issues compiling eww HOT 4
- [FEATURE] Manually trigger defpoll variable update
- [BUG] How can i know the window i want to open HOT 2
- [BUG] Draggable dont work on X11 HOT 6
- Eww gets stuck when :onclick runs a command that closes an eww window. On hypland 0.34.0 [BUG] HOT 11
- [BUG] Error parsing input for jq filter
- [BUG] Extra item in scroll widget
- How to use combo-box-text widget HOT 7
- [BUG] --screen doesn't work on wayland HOT 2
- Not able to build due to an apparent missing system library, which does exist HOT 1
- [BUG] Tooltip issues with defpoll HOT 1
- [BUG] image-width or image-height properties on .gif image widget doesn't seems to change size HOT 6
- [BUG] @font-face not supported HOT 1
- [FEATURE] Be able to get a signal in another process when eww reloads HOT 1
- [BUG] Once clicked, button triggers from anywhere on the widget HOT 4
- [BUG] Sibling elements have the same dimensions HOT 2
- [FEATURE] Have a max height property HOT 3
- getting error when trying to install eww on fedora 39 HOT 1
- [BUG] The revealer widget doesn't reposition the widget i.e. buttons while they're revealed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eww.