Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adrien Plazas
libhandy
Commits
ca6a5684
Commit
ca6a5684
authored
Dec 17, 2020
by
Adrien Plazas
Committed by
Alexander Mikhaylenko
Dec 21, 2020
Browse files
preferences-page: Implement the margins via CSS
This makes the widget more flexible.
parent
2b67e133
Pipeline
#240500
passed with stages
in 15 minutes and 57 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/hdy-preferences-page.ui
View file @
ca6a5684
...
...
@@ -12,10 +12,6 @@
<property
name=
"visible"
>
True
</property>
<child>
<object
class=
"HdyClamp"
>
<property
name=
"margin-bottom"
>
18
</property>
<property
name=
"margin-end"
>
12
</property>
<property
name=
"margin-start"
>
12
</property>
<property
name=
"margin-top"
>
18
</property>
<property
name=
"visible"
>
True
</property>
<child>
<object
class=
"GtkBox"
id=
"box"
>
...
...
src/themes/Adwaita-dark.css
View file @
ca6a5684
...
...
@@ -83,6 +83,8 @@ statuspage > scrolledwindow > viewport > box > clamp > box > .title { margin-bot
statuspage
>
scrolledwindow
>
viewport
>
box
>
clamp
>
box
>
.description
{
margin-bottom
:
36px
;
}
preferencespage
>
scrolledwindow
>
viewport
>
clamp
{
margin
:
18px
12px
;
}
preferencesgroup
>
box
>
label
:not
(
:first-child
)
{
margin-top
:
6px
;
}
preferencesgroup
>
box
>
box
:not
(
:first-child
)
{
margin-top
:
12px
;
}
...
...
src/themes/Adwaita.css
View file @
ca6a5684
...
...
@@ -83,6 +83,8 @@ statuspage > scrolledwindow > viewport > box > clamp > box > .title { margin-bot
statuspage
>
scrolledwindow
>
viewport
>
box
>
clamp
>
box
>
.description
{
margin-bottom
:
36px
;
}
preferencespage
>
scrolledwindow
>
viewport
>
clamp
{
margin
:
18px
12px
;
}
preferencesgroup
>
box
>
label
:not
(
:first-child
)
{
margin-top
:
6px
;
}
preferencesgroup
>
box
>
box
:not
(
:first-child
)
{
margin-top
:
12px
;
}
...
...
src/themes/HighContrast.css
View file @
ca6a5684
...
...
@@ -83,6 +83,8 @@ statuspage > scrolledwindow > viewport > box > clamp > box > .title { margin-bot
statuspage
>
scrolledwindow
>
viewport
>
box
>
clamp
>
box
>
.description
{
margin-bottom
:
36px
;
}
preferencespage
>
scrolledwindow
>
viewport
>
clamp
{
margin
:
18px
12px
;
}
preferencesgroup
>
box
>
label
:not
(
:first-child
)
{
margin-top
:
6px
;
}
preferencesgroup
>
box
>
box
:not
(
:first-child
)
{
margin-top
:
12px
;
}
...
...
src/themes/HighContrastInverse.css
View file @
ca6a5684
...
...
@@ -83,6 +83,8 @@ statuspage > scrolledwindow > viewport > box > clamp > box > .title { margin-bot
statuspage
>
scrolledwindow
>
viewport
>
box
>
clamp
>
box
>
.description
{
margin-bottom
:
36px
;
}
preferencespage
>
scrolledwindow
>
viewport
>
clamp
{
margin
:
18px
12px
;
}
preferencesgroup
>
box
>
label
:not
(
:first-child
)
{
margin-top
:
6px
;
}
preferencesgroup
>
box
>
box
:not
(
:first-child
)
{
margin-top
:
12px
;
}
...
...
src/themes/_fallback-base.scss
View file @
ca6a5684
...
...
@@ -171,6 +171,10 @@ statuspage > scrolledwindow > viewport > box {
// Preferences
preferencespage
>
scrolledwindow
>
viewport
>
clamp
{
margin
:
18px
12px
;
}
preferencesgroup
>
box
{
// Add space between the description and the title.
>
label
:not
(
:first-child
)
{
...
...
src/themes/fallback.css
View file @
ca6a5684
...
...
@@ -83,6 +83,8 @@ statuspage > scrolledwindow > viewport > box > clamp > box > .title { margin-bot
statuspage
>
scrolledwindow
>
viewport
>
box
>
clamp
>
box
>
.description
{
margin-bottom
:
36px
;
}
preferencespage
>
scrolledwindow
>
viewport
>
clamp
{
margin
:
18px
12px
;
}
preferencesgroup
>
box
>
label
:not
(
:first-child
)
{
margin-top
:
6px
;
}
preferencesgroup
>
box
>
box
:not
(
:first-child
)
{
margin-top
:
12px
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment