From cac3a5130cc111ce7ca45d883562db56b86724a4 Mon Sep 17 00:00:00 2001 From: pouya Date: Wed, 31 Jan 2024 18:01:27 +0330 Subject: [PATCH] first commit --- .gitignore | 74 +++++++++++++++++++ SepantaUIKit.pro | 21 ++++++ SepantaUiKit/Colors.qml | 23 ++++++ SepantaUiKit/Fonts.qml | 40 ++++++++++ SepantaUiKit/SKBtn/SKBtn.qml | 5 ++ SepantaUiKit/SKBtnIcon/SKBtnIcon.qml | 5 ++ SepantaUiKit/SKCheckBox/SKCheckBox.qml | 5 ++ SepantaUiKit/SKDropDown/SKDropDown.qml | 5 ++ SepantaUiKit/SKMultiOption/SKMultiOption.qml | 5 ++ .../SKMultiOptionWithDropDown.qml | 5 ++ .../SKPathSelector/SKPathSelector.qml | 5 ++ SepantaUiKit/SKTextField/SKTextField.qml | 5 ++ SepantaUiKit/SkScrollView/SkScrollView.qml | 5 ++ SepantaUiKit/aCommon/Effects.qml | 5 ++ SepantaUiKit/icons/Disk.svg | 4 + SepantaUiKit/icons/USB.svg | 12 +++ SepantaUiKit/icons/back folder.svg | 12 +++ SepantaUiKit/icons/check-square-fill.svg | 10 +++ SepantaUiKit/icons/delete folder.svg | 12 +++ SepantaUiKit/icons/downArrow.svg | 3 + SepantaUiKit/icons/exam icon.svg | 3 + SepantaUiKit/icons/file.svg | 5 ++ SepantaUiKit/icons/folder-plus.svg | 4 + SepantaUiKit/icons/folder.svg | 3 + SepantaUiKit/icons/person.svg | 3 + SepantaUiKit/icons/unckeck squre.svg | 10 +++ main.cpp | 25 +++++++ main.qml | 10 +++ qml.qrc | 17 +++++ 29 files changed, 341 insertions(+) create mode 100644 .gitignore create mode 100644 SepantaUIKit.pro create mode 100644 SepantaUiKit/Colors.qml create mode 100644 SepantaUiKit/Fonts.qml create mode 100644 SepantaUiKit/SKBtn/SKBtn.qml create mode 100644 SepantaUiKit/SKBtnIcon/SKBtnIcon.qml create mode 100644 SepantaUiKit/SKCheckBox/SKCheckBox.qml create mode 100644 SepantaUiKit/SKDropDown/SKDropDown.qml create mode 100644 SepantaUiKit/SKMultiOption/SKMultiOption.qml create mode 100644 SepantaUiKit/SKMultiOptionWithDropDown/SKMultiOptionWithDropDown.qml create mode 100644 SepantaUiKit/SKPathSelector/SKPathSelector.qml create mode 100644 SepantaUiKit/SKTextField/SKTextField.qml create mode 100644 SepantaUiKit/SkScrollView/SkScrollView.qml create mode 100644 SepantaUiKit/aCommon/Effects.qml create mode 100644 SepantaUiKit/icons/Disk.svg create mode 100644 SepantaUiKit/icons/USB.svg create mode 100644 SepantaUiKit/icons/back folder.svg create mode 100644 SepantaUiKit/icons/check-square-fill.svg create mode 100644 SepantaUiKit/icons/delete folder.svg create mode 100644 SepantaUiKit/icons/downArrow.svg create mode 100644 SepantaUiKit/icons/exam icon.svg create mode 100644 SepantaUiKit/icons/file.svg create mode 100644 SepantaUiKit/icons/folder-plus.svg create mode 100644 SepantaUiKit/icons/folder.svg create mode 100644 SepantaUiKit/icons/person.svg create mode 100644 SepantaUiKit/icons/unckeck squre.svg create mode 100644 main.cpp create mode 100644 main.qml create mode 100644 qml.qrc diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4a0b530 --- /dev/null +++ b/.gitignore @@ -0,0 +1,74 @@ +# This file is used to ignore files which are generated +# ---------------------------------------------------------------------------- + +*~ +*.autosave +*.a +*.core +*.moc +*.o +*.obj +*.orig +*.rej +*.so +*.so.* +*_pch.h.cpp +*_resource.rc +*.qm +.#* +*.*# +core +!core/ +tags +.DS_Store +.directory +*.debug +Makefile* +*.prl +*.app +moc_*.cpp +ui_*.h +qrc_*.cpp +Thumbs.db +*.res +*.rc +/.qmake.cache +/.qmake.stash + +# qtcreator generated files +*.pro.user* +CMakeLists.txt.user* + +# xemacs temporary files +*.flc + +# Vim temporary files +.*.swp + +# Visual Studio generated files +*.ib_pdb_index +*.idb +*.ilk +*.pdb +*.sln +*.suo +*.vcproj +*vcproj.*.*.user +*.ncb +*.sdf +*.opensdf +*.vcxproj +*vcxproj.* + +# MinGW generated files +*.Debug +*.Release + +# Python byte code +*.pyc + +# Binaries +# -------- +*.dll +*.exe + diff --git a/SepantaUIKit.pro b/SepantaUIKit.pro new file mode 100644 index 0000000..b86ec65 --- /dev/null +++ b/SepantaUIKit.pro @@ -0,0 +1,21 @@ +QT += quick + +# You can make your code fail to compile if it uses deprecated APIs. +# In order to do so, uncomment the following line. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + +SOURCES += \ + main.cpp + +RESOURCES += qml.qrc + +# Additional import path used to resolve QML modules in Qt Creator's code model +QML_IMPORT_PATH = + +# Additional import path used to resolve QML modules just for Qt Quick Designer +QML_DESIGNER_IMPORT_PATH = + +# Default rules for deployment. +qnx: target.path = /tmp/$${TARGET}/bin +else: unix:!android: target.path = /opt/$${TARGET}/bin +!isEmpty(target.path): INSTALLS += target diff --git a/SepantaUiKit/Colors.qml b/SepantaUiKit/Colors.qml new file mode 100644 index 0000000..877a885 --- /dev/null +++ b/SepantaUiKit/Colors.qml @@ -0,0 +1,23 @@ +import QtQuick 2.15 + +Item { + //Primary + property var primaryEnable: "#B2F7EF" + property var primaryPressed: "#3CFCE6" + //Secondary + property var secondaryEnable: "#007dff" + + property var secondaryPressed: "#abb5be" + //Tertiary + property var tertiaryEnable: "#E9E8E8" + property var tertiaryPressed: "#D0D0d0 +" + //Other + property var white: "#f8f8f8" + property var balck: "#0b0b0b" + property var success: "#28a745" + property var danger: "#dc3545" + property var warning: "#ffc107" + property var info: "#17a2b8" + property var gray: "#ced4da" +} diff --git a/SepantaUiKit/Fonts.qml b/SepantaUiKit/Fonts.qml new file mode 100644 index 0000000..8faeac4 --- /dev/null +++ b/SepantaUiKit/Fonts.qml @@ -0,0 +1,40 @@ +import QtQuick 2.15 + +Item { + property font h1: Qt.font({ + "family": 'Roboto', + "weight": Font.Normal, + "italic": false, + "pointSize": 40 + }) + property font h2: Qt.font({ + "family": 'Roboto', + "weight": Font.Medium, + "italic": false, + "pointSize": 20 + }) + property font h3: Qt.font({ + "family": 'Roboto', + "weight": Font.Bold, + "italic": false, + "pointSize": 16 + }) + property font h4: Qt.font({ + "family": 'Roboto', + "weight": Font.DemiBold, + "italic": false, + "pointSize": 16 + }) + property font h5: Qt.font({ + "family": 'Roboto', + "weight": Font.Normal, + "italic": false, + "pointSize": 16 + }) + property font h6: Qt.font({ + "family": 'Roboto', + "weight": Font.Normal, + "italic": false, + "pointSize": 12 + }) +} diff --git a/SepantaUiKit/SKBtn/SKBtn.qml b/SepantaUiKit/SKBtn/SKBtn.qml new file mode 100644 index 0000000..68c2108 --- /dev/null +++ b/SepantaUiKit/SKBtn/SKBtn.qml @@ -0,0 +1,5 @@ +import QtQuick 2.15 + +Item { + +} diff --git a/SepantaUiKit/SKBtnIcon/SKBtnIcon.qml b/SepantaUiKit/SKBtnIcon/SKBtnIcon.qml new file mode 100644 index 0000000..68c2108 --- /dev/null +++ b/SepantaUiKit/SKBtnIcon/SKBtnIcon.qml @@ -0,0 +1,5 @@ +import QtQuick 2.15 + +Item { + +} diff --git a/SepantaUiKit/SKCheckBox/SKCheckBox.qml b/SepantaUiKit/SKCheckBox/SKCheckBox.qml new file mode 100644 index 0000000..68c2108 --- /dev/null +++ b/SepantaUiKit/SKCheckBox/SKCheckBox.qml @@ -0,0 +1,5 @@ +import QtQuick 2.15 + +Item { + +} diff --git a/SepantaUiKit/SKDropDown/SKDropDown.qml b/SepantaUiKit/SKDropDown/SKDropDown.qml new file mode 100644 index 0000000..68c2108 --- /dev/null +++ b/SepantaUiKit/SKDropDown/SKDropDown.qml @@ -0,0 +1,5 @@ +import QtQuick 2.15 + +Item { + +} diff --git a/SepantaUiKit/SKMultiOption/SKMultiOption.qml b/SepantaUiKit/SKMultiOption/SKMultiOption.qml new file mode 100644 index 0000000..68c2108 --- /dev/null +++ b/SepantaUiKit/SKMultiOption/SKMultiOption.qml @@ -0,0 +1,5 @@ +import QtQuick 2.15 + +Item { + +} diff --git a/SepantaUiKit/SKMultiOptionWithDropDown/SKMultiOptionWithDropDown.qml b/SepantaUiKit/SKMultiOptionWithDropDown/SKMultiOptionWithDropDown.qml new file mode 100644 index 0000000..68c2108 --- /dev/null +++ b/SepantaUiKit/SKMultiOptionWithDropDown/SKMultiOptionWithDropDown.qml @@ -0,0 +1,5 @@ +import QtQuick 2.15 + +Item { + +} diff --git a/SepantaUiKit/SKPathSelector/SKPathSelector.qml b/SepantaUiKit/SKPathSelector/SKPathSelector.qml new file mode 100644 index 0000000..68c2108 --- /dev/null +++ b/SepantaUiKit/SKPathSelector/SKPathSelector.qml @@ -0,0 +1,5 @@ +import QtQuick 2.15 + +Item { + +} diff --git a/SepantaUiKit/SKTextField/SKTextField.qml b/SepantaUiKit/SKTextField/SKTextField.qml new file mode 100644 index 0000000..68c2108 --- /dev/null +++ b/SepantaUiKit/SKTextField/SKTextField.qml @@ -0,0 +1,5 @@ +import QtQuick 2.15 + +Item { + +} diff --git a/SepantaUiKit/SkScrollView/SkScrollView.qml b/SepantaUiKit/SkScrollView/SkScrollView.qml new file mode 100644 index 0000000..68c2108 --- /dev/null +++ b/SepantaUiKit/SkScrollView/SkScrollView.qml @@ -0,0 +1,5 @@ +import QtQuick 2.15 + +Item { + +} diff --git a/SepantaUiKit/aCommon/Effects.qml b/SepantaUiKit/aCommon/Effects.qml new file mode 100644 index 0000000..68c2108 --- /dev/null +++ b/SepantaUiKit/aCommon/Effects.qml @@ -0,0 +1,5 @@ +import QtQuick 2.15 + +Item { + +} diff --git a/SepantaUiKit/icons/Disk.svg b/SepantaUiKit/icons/Disk.svg new file mode 100644 index 0000000..21521c4 --- /dev/null +++ b/SepantaUiKit/icons/Disk.svg @@ -0,0 +1,4 @@ + + + + diff --git a/SepantaUiKit/icons/USB.svg b/SepantaUiKit/icons/USB.svg new file mode 100644 index 0000000..2eb46ba --- /dev/null +++ b/SepantaUiKit/icons/USB.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/SepantaUiKit/icons/back folder.svg b/SepantaUiKit/icons/back folder.svg new file mode 100644 index 0000000..e631baf --- /dev/null +++ b/SepantaUiKit/icons/back folder.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/SepantaUiKit/icons/check-square-fill.svg b/SepantaUiKit/icons/check-square-fill.svg new file mode 100644 index 0000000..db2a851 --- /dev/null +++ b/SepantaUiKit/icons/check-square-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/SepantaUiKit/icons/delete folder.svg b/SepantaUiKit/icons/delete folder.svg new file mode 100644 index 0000000..0ff4e1c --- /dev/null +++ b/SepantaUiKit/icons/delete folder.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/SepantaUiKit/icons/downArrow.svg b/SepantaUiKit/icons/downArrow.svg new file mode 100644 index 0000000..cbd03c5 --- /dev/null +++ b/SepantaUiKit/icons/downArrow.svg @@ -0,0 +1,3 @@ + + + diff --git a/SepantaUiKit/icons/exam icon.svg b/SepantaUiKit/icons/exam icon.svg new file mode 100644 index 0000000..1629c51 --- /dev/null +++ b/SepantaUiKit/icons/exam icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/SepantaUiKit/icons/file.svg b/SepantaUiKit/icons/file.svg new file mode 100644 index 0000000..bb5947c --- /dev/null +++ b/SepantaUiKit/icons/file.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/SepantaUiKit/icons/folder-plus.svg b/SepantaUiKit/icons/folder-plus.svg new file mode 100644 index 0000000..f2d47f0 --- /dev/null +++ b/SepantaUiKit/icons/folder-plus.svg @@ -0,0 +1,4 @@ + + + + diff --git a/SepantaUiKit/icons/folder.svg b/SepantaUiKit/icons/folder.svg new file mode 100644 index 0000000..fa9ea95 --- /dev/null +++ b/SepantaUiKit/icons/folder.svg @@ -0,0 +1,3 @@ + + + diff --git a/SepantaUiKit/icons/person.svg b/SepantaUiKit/icons/person.svg new file mode 100644 index 0000000..21e3dbb --- /dev/null +++ b/SepantaUiKit/icons/person.svg @@ -0,0 +1,3 @@ + + + diff --git a/SepantaUiKit/icons/unckeck squre.svg b/SepantaUiKit/icons/unckeck squre.svg new file mode 100644 index 0000000..b5db862 --- /dev/null +++ b/SepantaUiKit/icons/unckeck squre.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..c2c84fc --- /dev/null +++ b/main.cpp @@ -0,0 +1,25 @@ +#include +#include + +int main(int argc, char *argv[]) +{ +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#endif + QGuiApplication app(argc, argv); + + QQmlApplicationEngine engine; + const QUrl url(QStringLiteral("qrc:/main.qml")); + QObject::connect( + &engine, + &QQmlApplicationEngine::objectCreated, + &app, + [url](QObject *obj, const QUrl &objUrl) { + if (!obj && url == objUrl) + QCoreApplication::exit(-1); + }, + Qt::QueuedConnection); + engine.load(url); + + return app.exec(); +} diff --git a/main.qml b/main.qml new file mode 100644 index 0000000..a6a8997 --- /dev/null +++ b/main.qml @@ -0,0 +1,10 @@ +import QtQuick 2.13 +import QtQuick.Window 2.13 + +Window { + width: 1700 + height: 900 + visible: true + title: "SepantaUiKit" + color: "black" +} diff --git a/qml.qrc b/qml.qrc new file mode 100644 index 0000000..47ef95a --- /dev/null +++ b/qml.qrc @@ -0,0 +1,17 @@ + + + main.qml + SepantaUiKit/Colors.qml + SepantaUiKit/Fonts.qml + SepantaUiKit/SKBtn/SKBtn.qml + SepantaUiKit/SKBtnIcon/SKBtnIcon.qml + SepantaUiKit/SKMultiOption/SKMultiOption.qml + SepantaUiKit/SKDropDown/SKDropDown.qml + SepantaUiKit/SKTextField/SKTextField.qml + SepantaUiKit/SKCheckBox/SKCheckBox.qml + SepantaUiKit/SKMultiOptionWithDropDown/SKMultiOptionWithDropDown.qml + SepantaUiKit/SKPathSelector/SKPathSelector.qml + SepantaUiKit/SkScrollView/SkScrollView.qml + SepantaUiKit/aCommon/Effects.qml + +