From 9f18958ae070d2963efb3aae4b39d95891b8b3e5 Mon Sep 17 00:00:00 2001 From: reionwong Date: Tue, 31 Aug 2021 17:28:42 +0800 Subject: [PATCH] Add github ci --- .github/workflows/build.yml | 39 +++++++++++++++++++++++++++++++++++++ debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 29 +++++++++++++++++++++++++++ debian/copyright | 3 +++ debian/rules | 9 +++++++++ debian/source/format | 1 + qml/StandardButton.qml | 3 ++- qml/main.qml | 4 ++-- 9 files changed, 91 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/build.yml create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a71b4bd --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,39 @@ +name: Build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + debian: + name: Debian + runs-on: ubuntu-latest + container: docker.io/library/debian:sid + steps: + - name: Checkout Source + uses: actions/checkout@v2 + - name: Update repository + run: apt-get update -y + - name: Install the basic dev packages + run: apt-get install -y equivs curl git devscripts lintian build-essential automake autotools-dev cmake g++ + - name: Install build dependencies + run: mk-build-deps -i -t "apt-get --yes" -r + - name: Build Package + run: dpkg-buildpackage -b -uc -us -j$(nproc) + + ubuntu: + name: Ubuntu + runs-on: ubuntu-latest + steps: + - name: Checkout Source + uses: actions/checkout@v2 + - name: Update repository + run: sudo apt-get update -y + - name: Install the basic dev packages + run: sudo apt-get install -y equivs curl git devscripts lintian build-essential automake autotools-dev cmake g++ + - name: Install build dependencies + run: sudo mk-build-deps -i -t "apt-get --yes" -r + - name: Build Package + run: dpkg-buildpackage -b -uc -us -j$(nproc) diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..c3d18dd --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +cutefish-calculator (0.1) UNRELEASED; urgency=low + + * Initial release (CutefishOS) + + -- CutefishOS Thu, 16 Oct 2014 17:22:15 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..4127f5a --- /dev/null +++ b/debian/control @@ -0,0 +1,29 @@ +Source: cutefish-calculator +Section: devel +Priority: optional +Maintainer: CutefishOS +Build-Depends: cmake, + debhelper (>= 9), + extra-cmake-modules, + qtbase5-dev, + qtdeclarative5-dev, + qtquickcontrols2-5-dev, + qttools5-dev, + qttools5-dev-tools +Standards-Version: 4.5.0 +Homepage: https://github.com/cutefishos/calculator + +Package: cutefish-calculator +Architecture: any +Depends: qml-module-qtquick-controls2, + qml-module-qtquick2, + qml-module-qtquick-layouts, + qml-module-qt-labs-platform, + qml-module-qt-labs-settings, + qml-module-qtqml, + qml-module-qtquick-window2, + qml-module-qtquick-shapes, + qml-module-qtquick-dialogs, + ${misc:Depends}, + ${shlibs:Depends} +Description: CutefishOS Calculator diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..e7b6a9a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,3 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: cutefish-calculator +Source: diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ab2f7c3 --- /dev/null +++ b/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +export QT_SELECT=5 + +%: + dh $@ + +override_dh_auto_configure: + dh_auto_configure -- -DEMBED_TRANSLATIONS=ON -DBUILD_TESTING=ON diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/qml/StandardButton.qml b/qml/StandardButton.qml index 271477d..c042d54 100644 --- a/qml/StandardButton.qml +++ b/qml/StandardButton.qml @@ -52,12 +52,13 @@ Item { id: _icon anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter - width: control.height * 0.4 + width: control.height * 0.45 height: width sourceSize: Qt.size(width, height) source: control.icon ? control.icon : "" visible: _icon.status === Image.Ready smooth: false + antialiasing: true } Label { diff --git a/qml/main.qml b/qml/main.qml index bd9c343..704dc06 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -14,7 +14,7 @@ FishUI.Window { background.color: FishUI.Theme.darkMode ? Qt.rgba(46 / 255, 46 / 255, 46 / 255, 1.0) : Qt.rgba(240 / 255, 238 / 255, 241 / 255, 1.0) - background.opacity: rootWindow.compositing ? 0.9 : 1.0 + background.opacity: rootWindow.compositing ? 0.95 : 1.0 FishUI.WindowBlur { view: rootWindow @@ -49,7 +49,7 @@ FishUI.Window { z: -1 anchors.fill: parent color: FishUI.Theme.secondBackgroundColor - opacity: 0.4 + opacity: 0.8 } onPressed: zone.appendToTextField(text)