Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve UI and add search functionality #30

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion futr.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ executable futr
hs-source-dirs: src

other-modules:
AppState
EffectfulQML
Futr
Nostr.Bech32
Nostr.Effects.CurrentTime
Nostr.Effects.IDGen
Nostr.Effects.Logging
Expand All @@ -44,6 +44,7 @@ executable futr
Nostr.Profile
Nostr.Types
Presentation.KeyMgmt
Types
TimeFormatter
UI

Expand Down
51 changes: 11 additions & 40 deletions resources/qml/content/App.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,48 +26,19 @@ ApplicationWindow {
id: clipboard
}

Rectangle {
width: 900
height: parent.height
anchors.horizontalCenter: parent.horizontalCenter
anchors.margins: 10

Rectangle {
width: 1
height: parent.height
color: Material.dividerColor
anchors.left: parent.left
}

Rectangle {
width: 1
height: parent.height
color: Material.dividerColor
anchors.right: parent.right
}

Rectangle {
anchors.fill: parent
anchors.leftMargin: 1
anchors.rightMargin: 1
color: Material.backgroundColor

KeyMgmtScreen {
anchors.margins: 10
anchors.fill: parent
visible: currentScreen == "KeyMgmt"
}

Loader {
id: myHomeScreenLoader
active: currentScreen == "Home"
anchors.fill: parent
sourceComponent: HomeScreen {
anchors.margins: 10
anchors.fill: parent
}
Loader {
id: screenLoader
anchors.fill: parent
source: {
if (currentScreen === "Home") {
return "HomeScreen.ui.qml";
} else if (currentScreen === "KeyMgmt") {
return "KeyMgmtScreen.ui.qml";
} else {
return "";
}
}
active: currentScreen === "Home" || currentScreen === "KeyMgmt"
}

Button {
Expand Down
Loading