mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Add left margin to toolbar
This commit is contained in:
parent
ccc4afff4e
commit
dc02fe034e
@ -16,7 +16,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import QtQuick 2.7
|
import QtQuick 2.1
|
||||||
import QtQuick.Controls 2.0
|
import QtQuick.Controls 2.0
|
||||||
import org.retroshare.qml_components.LibresapiLocalClient 1.0
|
import org.retroshare.qml_components.LibresapiLocalClient 1.0
|
||||||
import "URI.js" as UriJs
|
import "URI.js" as UriJs
|
||||||
@ -61,7 +61,8 @@ ApplicationWindow
|
|||||||
property alias loaderSource: imageLoader.sourceComponent
|
property alias loaderSource: imageLoader.sourceComponent
|
||||||
property string defaultLabel: "RetroShare"
|
property string defaultLabel: "RetroShare"
|
||||||
|
|
||||||
states: [
|
states:
|
||||||
|
[
|
||||||
State {
|
State {
|
||||||
name: "DEFAULT"
|
name: "DEFAULT"
|
||||||
PropertyChanges { target: toolBar; titleText: defaultLabel}
|
PropertyChanges { target: toolBar; titleText: defaultLabel}
|
||||||
@ -72,13 +73,22 @@ ApplicationWindow
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
Loader {
|
Item
|
||||||
|
{
|
||||||
|
id: tolbarLeftPadding
|
||||||
|
width: 4
|
||||||
|
}
|
||||||
|
|
||||||
|
Loader
|
||||||
|
{
|
||||||
id: imageLoader
|
id: imageLoader
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
height: Math.max(30, toolBar.height - 4)
|
height: Math.max(30, toolBar.height - 4)
|
||||||
|
anchors.left: tolbarLeftPadding.right
|
||||||
}
|
}
|
||||||
|
|
||||||
Component {
|
Component
|
||||||
|
{
|
||||||
id: rsIcon
|
id: rsIcon
|
||||||
Image
|
Image
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user