mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 14:51:15 +00:00
![]() The logical pixels are now just called "px" and the less frequently used physical pixels have the "phx" suffix. The existing markup was adapted using the syntax updater and the following patch: + if node.kind() == SyntaxKind::NumberLiteral { + if node.text().ends_with("lx") { + return write!( + file, + "{}px", + node.text().as_str().split_at(node.text().as_str().len() - 2).0 + ); + } + if node.text().ends_with("px") { + return write!( + file, + "{}phx", + node.text().as_str().split_at(node.text().as_str().len() - 2).0 + ); + } + } Fixes #49 |
||
---|---|---|
.. | ||
.gitignore | ||
highlighting.ts | ||
index.html | ||
index.ts | ||
package.json | ||
tsconfig.json | ||
webpack.common.js | ||
webpack.dev.js | ||
webpack.prod.js |