2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Moved DBINotifyView to Core::Settings.

This commit is contained in:
23rd
2021-05-27 23:41:48 +03:00
parent 5334372671
commit da3e140069
7 changed files with 42 additions and 34 deletions

View File

@@ -48,6 +48,11 @@ public:
BottomRight = 2,
BottomLeft = 3,
};
enum class NotifyView {
ShowPreview = 0,
ShowName = 1,
ShowNothing = 2,
};
static constexpr auto kDefaultVolume = 0.9;
@@ -147,10 +152,10 @@ public:
void setFlashBounceNotify(bool value) {
_flashBounceNotify = value;
}
[[nodiscard]] DBINotifyView notifyView() const {
[[nodiscard]] NotifyView notifyView() const {
return _notifyView;
}
void setNotifyView(DBINotifyView value) {
void setNotifyView(NotifyView value) {
_notifyView = value;
}
[[nodiscard]] bool nativeNotifications() const {
@@ -598,7 +603,7 @@ private:
bool _soundNotify = true;
bool _desktopNotify = true;
bool _flashBounceNotify = true;
DBINotifyView _notifyView = dbinvShowPreview;
NotifyView _notifyView = NotifyView::ShowPreview;
std::optional<bool> _nativeNotifications;
int _notificationsCount = 3;
ScreenCorner _notificationsCorner = ScreenCorner::BottomRight;