Skip to content

Commit

Permalink
Merge pull request #232 from ioriayane/Relase/v0.32.0
Browse files Browse the repository at this point in the history
Release/v0.32.0
  • Loading branch information
ioriayane authored Jun 5, 2024
2 parents ee732e0 + af78cb5 commit b33e3d5
Show file tree
Hide file tree
Showing 65 changed files with 797 additions and 93 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ ui_*.h
Makefile*
*build-*
*.prl
build/

# Qt unit tests
target_wrapper.*
Expand Down
8 changes: 8 additions & 0 deletions app/app.pro
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
QT += quick network quickcontrols2
greaterThan(QT_MAJOR_VERSION, 5) {
QT += core5compat
}

TARGET = Hagoromo

Expand All @@ -11,6 +14,10 @@ HEADERS += \

QML_FILES = \
qml/main.qml \
qml/compat/ColorOverlayC.qml \
qml/compat/GlowC.qml \
qml/compat/OpacityMaskC.qml \
qml/compat/SettingsC.qml \
qml/controls/ClickableFrame.qml \
qml/controls/ComboBoxEx.qml \
qml/controls/ProgressCircle.qml \
Expand Down Expand Up @@ -81,6 +88,7 @@ QML_FILES = \
qml/parts/TagLabelLayout.qml \
qml/parts/VersionInfomation.qml \
qml/view/AnyProfileListView.qml \
qml/view/BlogEntryListView.qml \
qml/view/ChatListView.qml \
qml/view/ChatMessageListView.qml \
qml/view/ColumnView.qml \
Expand Down
7 changes: 6 additions & 1 deletion app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
#include "qtquick/chat/chatlistmodel.h"
#include "qtquick/chat/chatmessagelistmodel.h"
#include "qtquick/moderation/labelerlistmodel.h"
#include "qtquick/blog/blogentrylistmodel.h"

#include "tools/translatorchanger.h"

void setAppFont(QGuiApplication &app)
Expand Down Expand Up @@ -85,7 +87,7 @@ int main(int argc, char *argv[])
app.setOrganizationName(QStringLiteral("relog"));
app.setOrganizationDomain(QStringLiteral("hagoromo.relog.tech"));
app.setApplicationName(QStringLiteral("Hagoromo"));
app.setApplicationVersion(QStringLiteral("0.31.0"));
app.setApplicationVersion(QStringLiteral("0.32.0"));
#ifndef HAGOROMO_RELEASE_BUILD
app.setApplicationVersion(app.applicationVersion() + "d");
#endif
Expand Down Expand Up @@ -175,6 +177,9 @@ int main(int argc, char *argv[])
qmlRegisterType<LabelerListModel>("tech.relog.hagoromo.moderation.labelerlistmodel", 1, 0,
"LabelerListModel");

qmlRegisterType<BlogEntryListModel>("tech.relog.hagoromo.blog.blogentrylistmodel", 1, 0,
"BlogEntryListModel");

qmlRegisterSingletonType(QUrl("qrc:/Hagoromo/qml/data/AdjustedValues.qml"),
"tech.relog.hagoromo.singleton", 1, 0, "AdjustedValues");

Expand Down
6 changes: 6 additions & 0 deletions app/qml/compat/ColorOverlayC.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import QtGraphicalEffects 1.15
// import Qt5Compat.GraphicalEffects

ColorOverlay {

}
6 changes: 6 additions & 0 deletions app/qml/compat/GlowC.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import QtGraphicalEffects 1.15
// import Qt5Compat.GraphicalEffects

Glow {

}
6 changes: 6 additions & 0 deletions app/qml/compat/OpacityMaskC.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import QtGraphicalEffects 1.15
// import Qt5Compat.GraphicalEffects

OpacityMask {

}
5 changes: 5 additions & 0 deletions app/qml/compat/SettingsC.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Qt.labs.settings 1.0
// import QtCore

Settings {
}
5 changes: 3 additions & 2 deletions app/qml/controls/IconButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls.Material 2.15
import QtGraphicalEffects 1.15

import tech.relog.hagoromo.singleton 1.0

import "../compat"

Button {
id: button

Expand Down Expand Up @@ -47,7 +48,7 @@ Button {
Layout.leftMargin: 5
Layout.rightMargin: 5
layer.enabled: true
layer.effect: ColorOverlay {
layer.effect: ColorOverlayC {
color: button.foreground
}
}
Expand Down
5 changes: 3 additions & 2 deletions app/qml/controls/IconLabelFrame.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls.Material 2.15
import QtGraphicalEffects 1.15

import tech.relog.hagoromo.singleton 1.0

import "../compat"

Frame {
property alias iconSource: iconImage.source
property alias labelText: label.text
Expand Down Expand Up @@ -34,7 +35,7 @@ Frame {
Layout.preferredWidth: AdjustedValues.i16
Layout.preferredHeight: AdjustedValues.i16
layer.enabled: true
layer.effect: ColorOverlay {
layer.effect: ColorOverlayC {
color: Material.foreground
}
}
Expand Down
4 changes: 2 additions & 2 deletions app/qml/dialogs/AccountDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls.Material 2.15
import QtGraphicalEffects 1.15

import tech.relog.hagoromo.accountlistmodel 1.0
import tech.relog.hagoromo.singleton 1.0

import "../controls"
import "../parts"
import "../compat"

Dialog {
id: accountDialog
Expand Down Expand Up @@ -78,7 +78,7 @@ Dialog {
height: AdjustedValues.i24
source: "../images/add_user.png"
layer.enabled: true
layer.effect: ColorOverlay {
layer.effect: ColorOverlayC {
color: Material.accentColor // Material.color(Material.Grey)
}
}
Expand Down
4 changes: 2 additions & 2 deletions app/qml/dialogs/AddColumnDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls.Material 2.15
import QtGraphicalEffects 1.15

import tech.relog.hagoromo.accountlistmodel 1.0
import tech.relog.hagoromo.feedtypelistmodel 1.0
import tech.relog.hagoromo.singleton 1.0

import "../controls"
import "../parts"
import "../compat"

Dialog {
id: addColumnDialog
Expand Down Expand Up @@ -84,7 +84,7 @@ Dialog {
Layout.preferredWidth: AdjustedValues.i24
Layout.preferredHeight: AdjustedValues.i24
layer.enabled: true
layer.effect: ColorOverlay {
layer.effect: ColorOverlayC {
color: Material.color(Material.Grey)
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/qml/dialogs/AddListDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls.Material 2.15
import QtGraphicalEffects 1.15

import Qt.labs.platform 1.1 as P

import tech.relog.hagoromo.recordoperator 1.0
Expand Down
1 change: 0 additions & 1 deletion app/qml/dialogs/AddMutedWordDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls.Material 2.15
import QtGraphicalEffects 1.15

import tech.relog.hagoromo.mutedwordlistmodel 1.0
import tech.relog.hagoromo.singleton 1.0
Expand Down
4 changes: 2 additions & 2 deletions app/qml/dialogs/AddToListDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls.Material 2.15
import QtGraphicalEffects 1.15

import tech.relog.hagoromo.listslistmodel 1.0
import tech.relog.hagoromo.singleton 1.0

import "../controls"
import "../data"
import "../parts"
import "../compat"

Dialog {
id: addToListDialog
Expand Down Expand Up @@ -178,7 +178,7 @@ Dialog {
width: AdjustedValues.i18
height: AdjustedValues.i18
layer.enabled: true
layer.effect: ColorOverlay {
layer.effect: ColorOverlayC {
color: saveButton.foreground
}
property color foreground: Material.foreground
Expand Down
1 change: 0 additions & 1 deletion app/qml/dialogs/ColumnSettingDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls.Material 2.15
import Qt.labs.settings 1.0

import tech.relog.hagoromo.singleton 1.0

Expand Down
1 change: 0 additions & 1 deletion app/qml/dialogs/DiscoverFeedsDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls.Material 2.15
import QtGraphicalEffects 1.15

import tech.relog.hagoromo.feedgeneratorlistmodel 1.0
import tech.relog.hagoromo.singleton 1.0
Expand Down
2 changes: 1 addition & 1 deletion app/qml/dialogs/EditProfileDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls.Material 2.15
import QtGraphicalEffects 1.15

import Qt.labs.platform 1.1 as P

import tech.relog.hagoromo.recordoperator 1.0
Expand Down
4 changes: 2 additions & 2 deletions app/qml/dialogs/SettingDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls.Material 2.15
import Qt.labs.settings 1.0

import tech.relog.hagoromo.encryption 1.0
import tech.relog.hagoromo.systemtool 1.0
import tech.relog.hagoromo.singleton 1.0

import "../controls"
import "../compat"

Dialog {
id: settingDialog
Expand All @@ -27,7 +27,7 @@ Dialog {
id: systemTool
}

Settings {
SettingsC {
id: settings
// General
property int theme: Material.Light
Expand Down
7 changes: 3 additions & 4 deletions app/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls.Material 2.15
import QtGraphicalEffects 1.15
import Qt.labs.settings 1.1

import tech.relog.hagoromo.accountlistmodel 1.0
import tech.relog.hagoromo.columnlistmodel 1.0
Expand All @@ -15,6 +13,7 @@ import "controls"
import "dialogs"
import "view"
import "parts"
import "compat"

ApplicationWindow {
id: appWindow
Expand Down Expand Up @@ -64,7 +63,7 @@ ApplicationWindow {
}
}

Settings {
SettingsC {
// property alias x: appWindow.x
// property alias y: appWindow.y
property alias width: appWindow.width
Expand Down Expand Up @@ -922,7 +921,7 @@ ApplicationWindow {
border.width: 1
border.color: Material.color(Material.LightBlue)
layer.enabled: true
layer.effect: Glow {
layer.effect: GlowC {
radius: 8
samples: 17
color: Material.color(Material.LightBlue)
Expand Down
7 changes: 4 additions & 3 deletions app/qml/parts/AggregatedAvatarImages.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls.Material 2.15
import QtGraphicalEffects 1.15

import tech.relog.hagoromo.singleton 1.0

import "../compat"

Item {
id: aggregatedAavatarImages
property var avatars: []
Expand Down Expand Up @@ -78,7 +79,7 @@ Item {
fillMode: Image.PreserveAspectFit
source: "../images/expand_more.png"
layer.enabled: true
layer.effect: ColorOverlay {
layer.effect: ColorOverlayC {
color: Material.foreground
}
}
Expand All @@ -104,7 +105,7 @@ Item {
fillMode: Image.PreserveAspectFit
source: "../images/expand_less.png"
layer.enabled: true
layer.effect: ColorOverlay {
layer.effect: ColorOverlayC {
color: Material.foreground
}
}
Expand Down
6 changes: 3 additions & 3 deletions app/qml/parts/AvatarImage.qml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Controls.Material 2.15
import QtGraphicalEffects 1.15

import "../controls"
import "../compat"

MouseArea {
clip: true
Expand All @@ -21,7 +21,7 @@ MouseArea {
source: "../images/icon_mask.png"
visible: false
}
OpacityMask {
OpacityMaskC {
anchors.fill: parent
source: avatorImage
maskSource: mask
Expand All @@ -40,7 +40,7 @@ MouseArea {
anchors.fill: parent
fillMode: Image.PreserveAspectCrop
layer.enabled: true
layer.effect: ColorOverlay {
layer.effect: ColorOverlayC {
color: Material.color(Material.Grey)
}
source: "../images/account_icon.png"
Expand Down
4 changes: 2 additions & 2 deletions app/qml/parts/FeedGeneratorLinkCard.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls.Material 2.15
import QtGraphicalEffects 1.15

import tech.relog.hagoromo.singleton 1.0

import "../controls"
import "../compat"

ClickableFrame {
property alias avatarImage: feedGeneratorAvatarImage
Expand Down Expand Up @@ -44,7 +44,7 @@ ClickableFrame {
Layout.preferredHeight: AdjustedValues.i16
source: "../images/like.png"
layer.enabled: true
layer.effect: ColorOverlay {
layer.effect: ColorOverlayC {
color: Material.color(Material.Pink)
}
}
Expand Down
1 change: 0 additions & 1 deletion app/qml/parts/ListLinkCard.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls.Material 2.15
import QtGraphicalEffects 1.15

import tech.relog.hagoromo.singleton 1.0

Expand Down
Loading

0 comments on commit b33e3d5

Please sign in to comment.