buggins/dlangui

Question about CSS

Yorizuka opened this issue · 4 comments

I am currently reading the dlangui source code trying to understand the code base.

I have a question about the CSS functionality, so far in all the examples and the included default styling is done via android like XML, I have not seen any CSS files in the repo. But in the source code of dlangui there is a CSS parser.

What is the state of the CSS parser?
Is it an alternative syntax for ingesting the same data as the XML based styling?

I'm not the original author and I don't know dlangui in and out, but I think CSS is used for DML

as a test I removed:

  1. core/css.d
  2. core/cssparser.d
  3. core/dom.d
  4. dom/cssparser.d
  5. dom/encoding.d

after doing so everything seems to still work exactly the same way. So my hunch is that its unfinished & unused code.

Would you be interested in or accept a PR that removes the unused code?

I can go do a more thorough test and make sure I am not about to break stuff & if it checks out remove the 5 unused files for you.

PRs are more than welcome, though I'm unsure if it actually doesn't break anything. More testing would be needed. Good for us that I have a lot of dlangui projects to test on :)