Add icon to RoomDelegate for invited rooms
This commit is contained in:
parent
cf8ae13eae
commit
e8b173163d
1
TODO.md
1
TODO.md
|
@ -87,6 +87,7 @@
|
||||||
- Spinner when loading account, past room events, images or clicking buttons
|
- Spinner when loading account, past room events, images or clicking buttons
|
||||||
- Show account page as loading until profile initially retrieved
|
- Show account page as loading until profile initially retrieved
|
||||||
- Theming
|
- Theming
|
||||||
|
- Support SVG hue via image provider for icons
|
||||||
- Don't create additional lines in theme conversion (braces)
|
- Don't create additional lines in theme conversion (braces)
|
||||||
- Recursively merge default and user theme
|
- Recursively merge default and user theme
|
||||||
- Distribute fonts
|
- Distribute fonts
|
||||||
|
|
32
src/icons/dark-filled/invite-received.svg
Normal file
32
src/icons/dark-filled/invite-received.svg
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
id="svg4"
|
||||||
|
version="1.1"
|
||||||
|
clip-rule="evenodd"
|
||||||
|
fill-rule="evenodd"
|
||||||
|
height="24"
|
||||||
|
width="24">
|
||||||
|
<metadata
|
||||||
|
id="metadata10">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<defs
|
||||||
|
id="defs8" />
|
||||||
|
<path
|
||||||
|
style="fill:#e62562;fill-opacity:1"
|
||||||
|
id="path2"
|
||||||
|
d="M 24,22.917 H 0 V 9.642 L 2,8.186 V 0.917 h 20 v 7.272 l 2,1.453 z M 3,12.445 V 1.917 h 18 v 10.526 l -9,5.474 z m 9.003578,-8.8922656 1.672031,3.0878125 3.452969,0.6355 -2.419,2.5445625 0.46125,3.4811566 -3.16725,-1.515719 -3.1672503,1.515719 0.46125,-3.4811566 -2.419,-2.5445625 3.4529693,-0.6355 z" />
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.1 KiB |
32
src/icons/light-thin/invite-received.svg
Normal file
32
src/icons/light-thin/invite-received.svg
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
id="svg4"
|
||||||
|
version="1.1"
|
||||||
|
clip-rule="evenodd"
|
||||||
|
fill-rule="evenodd"
|
||||||
|
height="24"
|
||||||
|
width="24">
|
||||||
|
<metadata
|
||||||
|
id="metadata10">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<defs
|
||||||
|
id="defs8" />
|
||||||
|
<path
|
||||||
|
style="fill:#f75782;fill-opacity:1"
|
||||||
|
id="path2"
|
||||||
|
d="M 24,22.917 H 0 V 9.642 L 2,8.186 V 0.917 h 20 v 7.272 l 2,1.453 z M 3,12.445 V 1.917 h 18 v 10.526 l -9,5.474 z m 9.003578,-8.8922656 1.672031,3.0878125 3.452969,0.6355 -2.419,2.5445625 0.46125,3.4811566 -3.16725,-1.515719 -3.1672503,1.515719 0.46125,-3.4811566 -2.419,-2.5445625 3.4529693,-0.6355 z" />
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.1 KiB |
|
@ -43,6 +43,14 @@ HInteractiveRectangle {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HIcon {
|
||||||
|
svgName: "invite-received"
|
||||||
|
|
||||||
|
visible: Layout.maximumWidth > 0
|
||||||
|
Layout.maximumWidth: model.inviter_id ? implicitWidth : 0
|
||||||
|
Behavior on Layout.maximumWidth { HNumberAnimation {} }
|
||||||
|
}
|
||||||
|
|
||||||
HLabel {
|
HLabel {
|
||||||
readonly property var evDate:
|
readonly property var evDate:
|
||||||
model.last_event ? model.last_event.date : null
|
model.last_event ? model.last_event.date : null
|
||||||
|
@ -64,7 +72,6 @@ HInteractiveRectangle {
|
||||||
Layout.maximumWidth:
|
Layout.maximumWidth:
|
||||||
text && roomDelegate.width >= 200 ? implicitWidth : 0
|
text && roomDelegate.width >= 200 ? implicitWidth : 0
|
||||||
Behavior on Layout.maximumWidth { HNumberAnimation {} }
|
Behavior on Layout.maximumWidth { HNumberAnimation {} }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user