diff options
| author | Sander Ferdinand <sa.ferdinand@gmail.com> | 2017-11-16 22:05:14 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-03-29 23:04:00 +0100 |
| commit | 9819e63fccd290f9804c660bdc0617c026eb2ec7 (patch) | |
| tree | 48d65f8945b83b5d33da5221be69b8d52f6ab628 /components/MenuButton.qml | |
| parent | 50eafab5dc84487ac8ff4c962a96d1d3ecfdbc84 (diff) | |
| download | monzero-gui-9819e63fccd290f9804c660bdc0617c026eb2ec7.tar.gz monzero-gui-9819e63fccd290f9804c660bdc0617c026eb2ec7.tar.xz monzero-gui-9819e63fccd290f9804c660bdc0617c026eb2ec7.zip | |
Singleton for future style definition. For now, put the fonts there
Diffstat (limited to 'components/MenuButton.qml')
| -rw-r--r-- | components/MenuButton.qml | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/components/MenuButton.qml b/components/MenuButton.qml index 928848a6..319170b4 100644 --- a/components/MenuButton.qml +++ b/components/MenuButton.qml @@ -26,8 +26,9 @@ // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -import QtQuick 2.0 +import QtQuick 2.5 import QtGraphicalEffects 1.0 +import "." 1.0 Rectangle { id: button @@ -60,15 +61,6 @@ Rectangle { property bool present: !under || under.checked || checked || under.numSelectedChildren > 0 height: present ? ((appWindow.height >= 800) ? 44 * scaleRatio : 52 * scaleRatio ) : 0 - // Load custom fonts @TODO: should probably do this somewhere else - Text { - FontLoader { id: sfuid; source: "../fonts/SFUIDisplay-Bold.otf"; } - FontLoader { source: "../fonts/SFUIDisplay-Medium.otf"; } - FontLoader { source: "../fonts/SFUIDisplay-Light.otf"; } - FontLoader { source: "../fonts/SFUIDisplay-Regular.otf"; } - font.family: "SFUIDisplay"; - } - // Button gradient whilst checked // @TODO: replace by .png - gradient not available in 2d renderer LinearGradient { @@ -115,7 +107,7 @@ Rectangle { anchors.verticalCenter: parent.verticalCenter anchors.left: parent.right anchors.leftMargin: 8 * scaleRatio - font.family: "SFUIDisplay" + font.family: Style.fontMedium.name font.bold: true font.pixelSize: 16 * scaleRatio color: "#FFFFFF" |
