mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-08 06:32:55 -04:00
Implement android layout
This commit is contained in:
parent
cfe44be128
commit
f435fcda28
1 changed files with 27 additions and 8 deletions
|
@ -10,6 +10,9 @@ Rectangle
|
||||||
property int buttonWidth: 40
|
property int buttonWidth: 40
|
||||||
property TextArea textArea
|
property TextArea textArea
|
||||||
|
|
||||||
|
property bool androidMode: true // On Desktop appears on top of text field, instead appears in place of virtual keyboard (under text field)
|
||||||
|
|
||||||
|
|
||||||
property var rootFontName: theme.emojiFontName
|
property var rootFontName: theme.emojiFontName
|
||||||
|
|
||||||
//displays all Emoji of one categroy by modifying the ListModel of emojiGrid
|
//displays all Emoji of one categroy by modifying the ListModel of emojiGrid
|
||||||
|
@ -85,7 +88,12 @@ Rectangle
|
||||||
id: emojiGrid
|
id: emojiGrid
|
||||||
width: parent.width
|
width: parent.width
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.bottomMargin: buttonWidth
|
anchors
|
||||||
|
{
|
||||||
|
bottomMargin: if (!androidMode) buttonWidth
|
||||||
|
topMargin: if (androidMode) buttonWidth
|
||||||
|
}
|
||||||
|
|
||||||
cellWidth: buttonWidth; cellHeight: buttonWidth
|
cellWidth: buttonWidth; cellHeight: buttonWidth
|
||||||
|
|
||||||
model: emojiByCategory
|
model: emojiByCategory
|
||||||
|
@ -102,19 +110,30 @@ Rectangle
|
||||||
//seperator
|
//seperator
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
color: "black"
|
color: "gray"
|
||||||
anchors.bottom: parent.bottom
|
anchors
|
||||||
anchors.bottomMargin: buttonWidth
|
{
|
||||||
|
bottom: if (!androidMode) parent.bottom
|
||||||
|
top: if (androidMode) parent.top
|
||||||
|
bottomMargin: if (!androidMode) buttonWidth
|
||||||
|
topMargin: if (androidMode) buttonWidth
|
||||||
|
}
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 1
|
height: 1
|
||||||
}
|
}
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
color: emojiPicker.color
|
color: emojiPicker.color
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: buttonWidth
|
height: buttonWidth
|
||||||
|
|
||||||
|
anchors
|
||||||
|
{
|
||||||
|
bottom: if (!androidMode) parent.bottom
|
||||||
|
top: if (androidMode) parent.top
|
||||||
|
}
|
||||||
|
|
||||||
//emoji category selector
|
//emoji category selector
|
||||||
ListView
|
ListView
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue