https://github.com/fibercrypto/fibercryptoqtstyle
Style for FiberCrypto QT apps
https://github.com/fibercrypto/fibercryptoqtstyle
Last synced: 6 months ago
JSON representation
Style for FiberCrypto QT apps
- Host: GitHub
- URL: https://github.com/fibercrypto/fibercryptoqtstyle
- Owner: fibercrypto
- Created: 2019-06-28T00:35:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-17T00:16:01.000Z (almost 7 years ago)
- Last Synced: 2025-01-24T06:11:19.453Z (over 1 year ago)
- Language: QML
- Size: 81.1 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FiberCryptoQtStyle
*Qt Quick Controls 2 style plugin for* ***FiberCrypto wallet***
-----------------------------------------------------------
Available themes:
* Light theme
* Dark theme
## Installation
This style uses Qt internals private headers. That is neccesary in order to get the maximum performance, but the flip part is that doing so ties this plugin to the Qt version it was compiled against.
That means that using it with **any** other version, no matter if greater or lower, can cause the application that uses it to **eventually crash at some random point**.
To avoid that, you **must** use the plugin that matches the Qt version you are using. Both dynamic and static binaries of the plugin are provided to some version of Qt. However, we believe that is more safe that you compile the plugin and install it manually.
### Option 1: Precompiled binaries
1. Download the precompiled binaries that matches your Qt version, if any. If you can't find one, then you must compile it from sources using the Option 2.
2. Uncompress the content.
3. Copy the folder `FiberCrypto` to `$QTDIR/qml/QtQuick/Controls.2/`
### Option 2: Building from sources
1. Clone or download this repository.
2. Open the project (`.pro`) file in Qt Creator.
3. Build it.
4. Copy the following files to a new folder named `FiberCrypto`:
- All `.qml` files, located in the `fibercrypto` folder of this repository.
- The `qmldir` file, located in the `fibercrypto` folder of this repository.
- The `plugins.qmltypes` file, located in the `fibercrypto` folder of this repository.
- The compiled plugin, named `libqtquickcontrols2fibercryptostyleplugin`, ending with `.so` or `.a` depending of if it's a dynamic or static plugin respectively. If it is dynamic, remove the version number so the final name is: `libqtquickcontrols2fibercryptostyleplugin.so`. If it is static, keep it as is.
5. Copy the folder to `$QTDIR/qml/QtQuick/Controls.2/`
## Usage
Import the plugin in Qt Creator:
`import QtQuick.Controls.FiberCrypto 2.X`
Replace `X` with the Qt minor version number (i.e. `2.12` for Qt 5.12, `2.13` for Qt 5.13, etc...).
## WIP
### This is a Work In Progress