mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-08-22 02:55:41 +08:00
Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0b880e1eb | ||
|
|
c10f1499f2 | ||
|
|
d7a9c26ff9 | ||
|
|
f809ad173c | ||
|
|
34155d0266 | ||
|
|
9d544788b0 | ||
|
|
dd16e65b68 | ||
|
|
91eac61a90 | ||
|
|
941cc79af5 | ||
|
|
0d6ecfc730 |
@@ -601,6 +601,15 @@ export component MainWindow inherits Window {
|
|||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-color: ImGuiLineStyle.border;
|
border-color: ImGuiLineStyle.border;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
// Measure the ID using the preferred field size.
|
||||||
|
// The visible text can then scale only on systems
|
||||||
|
// whose font metrics would otherwise clip it.
|
||||||
|
local-id-width-probe := Text {
|
||||||
|
visible: false;
|
||||||
|
text: root.local-id;
|
||||||
|
font-size: ImGuiFontStyle.field-value;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
Text {
|
Text {
|
||||||
x: 8px;
|
x: 8px;
|
||||||
// Compensate for the font's ascender-heavy
|
// Compensate for the font's ascender-heavy
|
||||||
@@ -610,7 +619,9 @@ export component MainWindow inherits Window {
|
|||||||
height: parent.height - 4px;
|
height: parent.height - 4px;
|
||||||
text: root.local-id;
|
text: root.local-id;
|
||||||
color: #20242a;
|
color: #20242a;
|
||||||
font-size: ImGuiFontStyle.field-value;
|
font-size: max(18px,
|
||||||
|
ImGuiFontStyle.field-value *
|
||||||
|
(self.width / max(self.width, local-id-width-probe.preferred-width)));
|
||||||
letter-spacing: 1px;
|
letter-spacing: 1px;
|
||||||
horizontal-alignment: left;
|
horizontal-alignment: left;
|
||||||
vertical-alignment: center;
|
vertical-alignment: center;
|
||||||
|
|||||||
+1
-1
Submodule submodules/minirtc updated: 0481f90226...50ca51ecc1
Vendored
+6
@@ -49,6 +49,12 @@ package("slint")
|
|||||||
"-DSLINT_STYLE=fluent",
|
"-DSLINT_STYLE=fluent",
|
||||||
"-DBUILD_SHARED_LIBS=ON"
|
"-DBUILD_SHARED_LIBS=ON"
|
||||||
}
|
}
|
||||||
|
if package:is_plat("windows") then
|
||||||
|
local rc = assert(package:build_getenv("mrc"),
|
||||||
|
"failed to find the Windows resource compiler")
|
||||||
|
rc = rc:gsub("\\", "/")
|
||||||
|
table.insert(configs, "-DCMAKE_RC_COMPILER=" .. rc)
|
||||||
|
end
|
||||||
import("package.tools.cmake").install(package, configs)
|
import("package.tools.cmake").install(package, configs)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user