Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kalendar
Commits
c9ad01aa
Commit
c9ad01aa
authored
Jul 28, 2022
by
Claudio Cambra
Browse files
Make the layout of the mail viewer contents more consistent
Signed-off-by:
Claudio Cambra
<
claudio.cambra@gmail.com
>
parent
5f1e5547
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/mail/qml/MailViewer.qml
View file @
c9ad01aa
...
...
@@ -20,14 +20,25 @@ QQC2.Page {
property
string
to
property
date
dateTime
Kirigami.Theme.colorSet
:
Kirigami
.
Theme
.
View
Kirigami.Theme.inherit
:
false
padding
:
Kirigami
.
Units
.
largeSpacing
*
2
background
:
Rectangle
{
color
:
Kirigami
.
Theme
.
backgroundColor
property
color
borderColor
:
Kirigami
.
Theme
.
textColor
border.color
:
Qt
.
rgba
(
borderColor
.
r
,
borderColor
.
g
,
borderColor
.
b
,
0.3
)
radius
:
Kirigami
.
Units
.
largeSpacing
}
header
:
QQC2.ToolBar
{
padding
:
Kirigami
.
Units
.
largeSpac
ing
padding
:
root
.
padd
ing
Kirigami.Theme.inherit
:
false
Kirigami.Theme.colorSet
:
Kirigami
.
Theme
.
View
background
:
Item
{
implicitHeight
:
40
Kirigami.Separator
{
anchors
{
left
:
parent
.
left
...
...
@@ -86,13 +97,12 @@ QQC2.Page {
}
footer
:
QQC2.ToolBar
{
padding
:
Kirigami
.
Units
.
largeSpac
ing
padding
:
root
.
padd
ing
Kirigami.Theme.inherit
:
false
Kirigami.Theme.colorSet
:
Kirigami
.
Theme
.
View
background
:
Item
{
implicitHeight
:
40
Kirigami.Separator
{
anchors
{
left
:
parent
.
left
...
...
@@ -125,13 +135,4 @@ QQC2.Page {
}
}
}
Kirigami.Theme.colorSet
:
Kirigami
.
Theme
.
View
Kirigami.Theme.inherit
:
false
background
:
Rectangle
{
color
:
Kirigami
.
Theme
.
backgroundColor
property
color
borderColor
:
Kirigami
.
Theme
.
textColor
border.color
:
Qt
.
rgba
(
borderColor
.
r
,
borderColor
.
g
,
borderColor
.
b
,
0.3
)
radius
:
4
}
}
src/mail/qml/mailpartview/MailPartModel.qml
View file @
c9ad01aa
...
...
@@ -77,9 +77,6 @@ DelegateModel {
left
:
parent
.
left
right
:
parent
.
right
top
:
parent
.
top
rightMargin
:
Kirigami
.
Units
.
largeSpacing
leftMargin
:
Kirigami
.
Units
.
largeSpacing
topMargin
:
Kirigami
.
Units
.
smallSpacing
}
spacing
:
Kirigami
.
Units
.
smallSpacing
...
...
@@ -106,7 +103,7 @@ DelegateModel {
id
:
partLoader
Layout.preferredHeight
:
item
?
item
.
contentHeight
:
0
Layout.maximumWidth
:
parent
.
width
width
:
parent
.
width
Layout.fillWidth
:
true
Binding
{
target
:
partLoader
.
item
property
:
"
searchString
"
...
...
src/mail/qml/mailpartview/TextPart.qml
View file @
c9ad01aa
...
...
@@ -31,6 +31,7 @@ Item {
background
:
Item
{}
readOnly
:
true
textFormat
:
TextEdit
.
RichText
padding
:
0
anchors
{
top
:
parent
.
top
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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