using sourcesanspro fonts

This commit is contained in:
Alexandre Van de Sande 2015-02-09 18:35:52 +01:00
parent 35b022e5a7
commit b979ab0ae2
17 changed files with 46 additions and 13 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -9,6 +9,7 @@ import Ethereum 1.0
import "../ext/filter.js" as Eth import "../ext/filter.js" as Eth
import "../ext/http.js" as Http import "../ext/http.js" as Http
ApplicationWindow { ApplicationWindow {
id: root id: root
@ -375,6 +376,25 @@ ApplicationWindow {
Layout.minimumWidth: 192 Layout.minimumWidth: 192
Layout.maximumWidth: 192 Layout.maximumWidth: 192
FontLoader {
id: sourceSansPro
source: "fonts/SourceSansPro-Regular.ttf"
}
FontLoader {
source: "fonts/SourceSansPro-Semibold.ttf"
}
FontLoader {
source: "fonts/SourceSansPro-Bold.ttf"
}
FontLoader {
source: "fonts/SourceSansPro-Black.ttf"
}
FontLoader {
source: "fonts/SourceSansPro-Light.ttf"
}
FontLoader {
source: "fonts/SourceSansPro-ExtraLight.ttf"
}
anchors.top: parent.top anchors.top: parent.top
Rectangle { Rectangle {
width: parent.height width: parent.height
@ -503,7 +523,21 @@ ApplicationWindow {
} }
Text { Text {
id: buttonLabel
visible: false
text: "GO TO NEW APP"
font.family: sourceSansPro.name
font.weight: Font.DemiBold
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
color: "#AAA0A0"
//font.family: SourceSansProRegular.name
}
Text {
id: label id: label
font.family: sourceSansPro.name
font.weight: Font.DemiBold
anchors { anchors {
left: icon.right left: icon.right
verticalCenter: parent.verticalCenter verticalCenter: parent.verticalCenter
@ -513,19 +547,12 @@ ApplicationWindow {
color: "#665F5F" color: "#665F5F"
font.pixelSize: 14 font.pixelSize: 14
} }
Text {
id: buttonLabel
visible: false
text: "GO TO NEW APP"
font.bold: true
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
color: "#AAA0A0"
}
Text { Text {
id: secondary id: secondary
font.family: sourceSansPro.name
font.weight: Font.Light
anchors { anchors {
right: parent.right right: parent.right
rightMargin: 8 rightMargin: 8
@ -619,7 +646,8 @@ ApplicationWindow {
color: "transparent" color: "transparent"
Text { Text {
text: "ETHEREUM" text: "ETHEREUM"
font.bold: true font.family: sourceSansPro.name
font.weight: Font.DemiBold
anchors { anchors {
left: parent.left left: parent.left
top: parent.verticalCenter top: parent.verticalCenter
@ -644,7 +672,8 @@ ApplicationWindow {
color: "transparent" color: "transparent"
Text { Text {
text: "APPS" text: "APPS"
font.bold: true font.family: sourceSansPro.name
font.weight: Font.DemiBold
anchors { anchors {
left: parent.left left: parent.left
top: parent.verticalCenter top: parent.verticalCenter
@ -668,7 +697,8 @@ ApplicationWindow {
color: "transparent" color: "transparent"
Text { Text {
text: "DEBUG" text: "DEBUG"
font.bold: true font.family: sourceSansPro.name
font.weight: Font.DemiBold
anchors { anchors {
left: parent.left left: parent.left
top: parent.verticalCenter top: parent.verticalCenter

View file

@ -6,6 +6,7 @@ import QtWebEngine 1.0
//import QtWebEngine.experimental 1.0 //import QtWebEngine.experimental 1.0
import QtQuick.Window 2.0; import QtQuick.Window 2.0;
Rectangle { Rectangle {
id: window id: window
anchors.fill: parent anchors.fill: parent
@ -20,6 +21,8 @@ Rectangle {
property alias windowTitle: webview.title property alias windowTitle: webview.title
property alias webView: webview property alias webView: webview
property var cleanPath: false property var cleanPath: false
property var open: function(url) { property var open: function(url) {
if(!window.cleanPath) { if(!window.cleanPath) {