Comments (5)
On a sidenote, I will probably deprecate the function all together, and then make parseCSSColor
instead, to avoid any confusion
from dlangui.
I'm not the author of this code, but I assume it has something to do with endianess (it always is). If you want, you can add decodeHexColorRGBA
and I will happily merge :)
from dlangui.
I did not find a way to distinguish RGBA from ARGB in hex form. If only to parse a string like rgba(r,g,b,a).
from dlangui.
Well, as unfortunate as it is right now, switching from ARGB to RGBA will cause breakage. And a lot of breakage. I don't see how this could be changed without breaking everything already written.
I will try to investigate how much actual damage that might cause. If it doesn't do too much, maybe RGBA can be used.
from dlangui.
I added parseCSSColor
function, but I couldn't deprecate the parseHexColor
. Dlangui relies on ARGB too much internally so it's not viable to change everything right now.
from dlangui.
Related Issues (20)
- How to load font from resources? HOT 11
- How to set widget width in pixels? HOT 6
- bug: AppFrame veritical scrollbar scrolls mainMenu, toolbar, statusbar. Wheel not work HOT 1
- Drag & Drop doesn't work when ran as admin on Windows HOT 1
- `GridWidgetBase` should use `ulong` for measuring counts
- `GridWidgetBase` should use `UIString` instead of `dstring`
- How to change cursor type? HOT 2
- Can not load freetype library HOT 2
- Question about CSS HOT 4
- Missing Images? HOT 3
- DMLEdit crashes on resizing things
- Hi Grim HOT 3
- Fix for the broken renameTab(...) in tabs.d
- Invalidating a widget doesn't cause a redraw
- Is this expected or not? HOT 3
- Getting an OpenGL widget to work HOT 1
- OSX support improvements: library paths HOT 3
- Issues displaying gif images via ImageWidget and/or backgroundDrawable (DrawableRef) HOT 1
- Got compilation error: no property `v2_0_4` for type `SDLSupport` with 0.10.7 HOT 1
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 dlangui.