Make boxes rounded by default
This commit is contained in:
parent
b98741a35e
commit
f70979846e
|
@ -11,6 +11,7 @@ export component AppWindow inherits Window {
|
|||
preferred-width: 1280px;
|
||||
preferred-height: 720px;
|
||||
VerticalBox {
|
||||
j-rounding: 0px;
|
||||
j-padding: Metrics.padding-sm;
|
||||
j-spacing: Metrics.spacing-sm;
|
||||
j-alignment: stretch;
|
||||
|
|
|
@ -4,7 +4,6 @@ import { HorizontalBox } from "widgets/layout.slint";
|
|||
export component EditorBar inherits HorizontalBox {
|
||||
height: Metrics.size-xl;
|
||||
j-spacing: Metrics.spacing-xl;
|
||||
j-rounding: Metrics.radius-md;
|
||||
|
||||
Text {
|
||||
color: DarkPalette.text[4];
|
||||
|
|
|
@ -5,7 +5,6 @@ import { HorizontalBox, VerticalBox } from "widgets/layout.slint";
|
|||
|
||||
export component ObjectToolPanel inherits VerticalBox {
|
||||
width: 280px;
|
||||
j-rounding: Metrics.radius-md;
|
||||
j-alignment: stretch;
|
||||
|
||||
Text {
|
||||
|
@ -103,7 +102,6 @@ export component ObjectToolPanel inherits VerticalBox {
|
|||
|
||||
HorizontalBox {
|
||||
j-alignment: stretch;
|
||||
j-rounding: Metrics.radius-md;
|
||||
j-padding: 0px;
|
||||
|
||||
Text {
|
||||
|
@ -117,7 +115,6 @@ export component ObjectToolPanel inherits VerticalBox {
|
|||
|
||||
HorizontalBox {
|
||||
width: Metrics.size-md;
|
||||
j-rounding: Metrics.radius-md;
|
||||
j-elevation: 3;
|
||||
|
||||
Rectangle { }
|
||||
|
@ -125,7 +122,6 @@ export component ObjectToolPanel inherits VerticalBox {
|
|||
|
||||
HorizontalBox {
|
||||
width: Metrics.size-md;
|
||||
j-rounding: Metrics.radius-md;
|
||||
j-elevation: 3;
|
||||
|
||||
Rectangle { }
|
||||
|
@ -134,7 +130,6 @@ export component ObjectToolPanel inherits VerticalBox {
|
|||
|
||||
VerticalBox {
|
||||
j-alignment: stretch;
|
||||
j-rounding: Metrics.radius-md;
|
||||
|
||||
Text {
|
||||
color: DarkPalette.text[4];
|
||||
|
|
|
@ -4,7 +4,6 @@ import { HorizontalBox } from "widgets/layout.slint";
|
|||
|
||||
export component StatusBar inherits HorizontalBox {
|
||||
height: Metrics.size-lg;
|
||||
j-rounding: Metrics.radius-md;
|
||||
j-spacing: Metrics.spacing-lg;
|
||||
|
||||
Text {
|
||||
|
|
|
@ -12,7 +12,6 @@ component ToolBarItem inherits Rectangle {
|
|||
|
||||
export component ToolBar inherits VerticalBox {
|
||||
width: Metrics.size-xl;
|
||||
j-rounding: Metrics.radius-md;
|
||||
|
||||
Button {
|
||||
checkable: true;
|
||||
|
|
|
@ -9,7 +9,7 @@ struct BorderStyle {
|
|||
export component HorizontalBox inherits Rectangle {
|
||||
// TODO: border, shadow
|
||||
in property <int> j-elevation: 1;
|
||||
in property <length> j-rounding: 0px;
|
||||
in property <length> j-rounding: Metrics.radius-md;
|
||||
in property <length> j-padding: Metrics.padding-md;
|
||||
in property <length> j-spacing: Metrics.spacing-md;
|
||||
in property <LayoutAlignment> j-alignment: start;
|
||||
|
@ -29,7 +29,7 @@ export component HorizontalBox inherits Rectangle {
|
|||
export component VerticalBox inherits Rectangle {
|
||||
// TODO: border, shadow
|
||||
in property <int> j-elevation: 1;
|
||||
in property <length> j-rounding: 0px;
|
||||
in property <length> j-rounding: Metrics.radius-md;
|
||||
in property <length> j-padding: Metrics.padding-md;
|
||||
in property <length> j-spacing: Metrics.spacing-md;
|
||||
in property <LayoutAlignment> j-alignment: start;
|
||||
|
|
|
@ -5,8 +5,6 @@ export component Panel inherits VerticalBox {
|
|||
in property <string> title: "Title";
|
||||
in property <TextHorizontalAlignment> title-alignment: left;
|
||||
|
||||
j-rounding: Metrics.radius-md;
|
||||
|
||||
Text {
|
||||
height: Metrics.size-md;
|
||||
color: DarkPalette.text[4];
|
||||
|
|
Loading…
Reference in New Issue