Code Monkey home page Code Monkey logo

Comments (4)

Lwmte avatar Lwmte commented on May 13, 2024 3

Sadly, this is the biggest issue with DarkUI. It uses a lot of pixel-perfect control drawing routines, so it doesn't scale at all. It seems it's impossible to fix without full rewrite.

from darkui.

iOrange avatar iOrange commented on May 13, 2024

That's sad because I love how DarkUI looks. Thanks for returning my question!

BTW - do you have any plans on making DarkUI for WPF ?

from darkui.

Lwmte avatar Lwmte commented on May 13, 2024

I guess it won't happen... neither on master nor on our branch (https://github.com/Lwmte/DarkUI/), it's easier to use existing dark-themed WPF projects.

from darkui.

RobinPerris avatar RobinPerris commented on May 13, 2024

I just tried DarkUI, and if the DPI scale in Windows is set to > 100%, and the Application is set to be DPI aware - the DarkUI completely breaks, as it's not responding to Font scale.

Unfortunately pixel-perfect drawing is a core design aspect of DarkUI. Changing it would require re-writing the majority of the rendering logic which I personally won't be doing. DarkUI is (loosely) maintained with bugs fixed, but it's a legacy product at this point.

You can sledgehammer your app to remove DPI scaling to 'fix' the problem as discussed on Stack Overflow... but it's not a pretty solution.

If you do need DPI-awareness support in your app, I'd highly recommend not using WinForms and use a more modern windowing system like WPF.

That's sad because I love how DarkUI looks. Thanks for returning my question!

BTW - do you have any plans on making DarkUI for WPF ?

I don't think DarkUI for WPF is really required? DarkUI was created because you can't set the border colour on something as simple as a textbox in WinForms - I needed code hacks to bypass those limitations. As WPF is pure DirectX those limitations no longer exist and you should be able to get similar effects by just modifying the properties accordingly.

If you like the look of it, pick up any of the JetBrains IDEs and copy the colours from there - that's all I did. 😋

Regardless, I develop all of my apps to run across macOS and Linux now-a-days, and WPF is limited to just Windows so it's off the table for me.

from darkui.

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.