feat: initial commit for pixel-snapping components and helpers
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import QtQuick
|
||||
import ZShell
|
||||
import ZShell.Config
|
||||
import qs.Services
|
||||
|
||||
@@ -15,9 +16,9 @@ ButtonBase {
|
||||
const h = label.implicitHeight + padding * 2;
|
||||
if (h % 2 !== 0)
|
||||
return h + 1;
|
||||
return h;
|
||||
return ZUtils.snap(h, root);
|
||||
}
|
||||
implicitWidth: implicitHeight
|
||||
implicitWidth: ZUtils.snap(implicitHeight, root)
|
||||
inactiveColor: {
|
||||
if (!isToggle && type === IconButton.Filled)
|
||||
return Colors.palette.m3primary;
|
||||
|
||||
Reference in New Issue
Block a user