-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(SettingsLeftTabView): fixup alignment of the Beta tag
- use a dedicated StatusListItem slot for the beta tag icon - rename (Settings/)LeftTabView.qml to SettingsLeftTabView to avoid naming confusion with the same component from wallet - add the component to SB with options to explore Fixes: #16906
- Loading branch information
Showing
5 changed files
with
85 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
import QtQuick 2.15 | ||
import QtQuick.Controls 2.15 | ||
import QtQuick.Layouts 1.15 | ||
|
||
import StatusQ 0.1 | ||
|
||
import Models 1.0 | ||
import Storybook 1.0 | ||
|
||
import AppLayouts.Profile.views 1.0 | ||
import AppLayouts.Profile.helpers 1.0 | ||
|
||
SplitView { | ||
id: root | ||
|
||
orientation: Qt.Vertical | ||
|
||
Logs { id: logs } | ||
|
||
SettingsLeftTabView { | ||
SplitView.fillWidth: true | ||
SplitView.fillHeight: true | ||
|
||
model: SettingsEntriesModel { | ||
showWalletEntries: ctrlShowWalletEntries.checked | ||
showBackUpSeed: ctrlShowBackUpSeed.checked | ||
syncingBadgeCount: ctrlSyncingBadgeCount.value | ||
messagingBadgeCount: ctrlMessagingBadgeCount.value | ||
} | ||
onMenuItemClicked: (event) => logs.logEvent("onMenuItemClicked", ["event"], arguments) | ||
} | ||
|
||
LogsAndControlsPanel { | ||
id: logsAndControlsPanel | ||
|
||
SplitView.minimumHeight: 100 | ||
SplitView.preferredHeight: 100 | ||
SplitView.fillWidth: true | ||
|
||
logsView.logText: logs.logText | ||
|
||
RowLayout { | ||
spacing: 20 | ||
Layout.fillHeight: true | ||
|
||
RowLayout { | ||
Label { text: "Syncing badge count:" } | ||
SpinBox { | ||
id: ctrlSyncingBadgeCount | ||
value: 1 | ||
from: 0 | ||
to: 999 | ||
} | ||
} | ||
RowLayout { | ||
Label { text: "Messaging badge count:" } | ||
SpinBox { | ||
id: ctrlMessagingBadgeCount | ||
value: 2 | ||
from: 0 | ||
to: 999 | ||
} | ||
} | ||
Switch { | ||
id: ctrlShowBackUpSeed | ||
checked: true | ||
text: "Show backup seed" | ||
} | ||
Switch { | ||
id: ctrlShowWalletEntries | ||
checked: true | ||
text: "Show wallet entries" | ||
} | ||
} | ||
} | ||
} | ||
|
||
// category: Views | ||
// status: good |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters