Git Product home page Git Product logo

Comments (2)

mmstick avatar mmstick commented on September 4, 2024

Do GTK pixel margins scale with HiDPI environments? I've always been partial to using CSS for setting margins / padding / borders due to em units scaling better on web pages, due to being calculated based on relative font sizes.

from popsicle.

cassidyjames avatar cassidyjames commented on September 4, 2024

GTK is fully HiDPI out of the box. Ems make sense if what you actually want is typographic spacing, but in GTK we typically use display pixels, which are then scaled by the display's scaling factor. We usually want a 12px spacing inside a window, for example, so that widgets don't bump up against the edge. We don't want to scale that up if someone changes their system font because it's unrelated to type. It will automatically scale by the GTK scaling factor for the display, though.

from popsicle.

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.