forked from liferooter/textpieces
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Save selected tool between sessions
Fixes liferooter#96
- Loading branch information
1 parent
bc89ea9
commit 520c4bb
Showing
22 changed files
with
444 additions
and
416 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
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
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
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,60 @@ | ||
// SPDX-FileCopyrightText: 2022 Gleb Smirnov <[email protected]> | ||
// | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
using Gtk 4.0; | ||
using Adw 1; | ||
|
||
template TextPiecesSearch : Adw.Bin { | ||
Stack search_stack { | ||
transition-type: crossfade; | ||
|
||
StackPage { | ||
name: "search"; | ||
child: ScrolledWindow { | ||
child: Viewport results_viewport { | ||
scroll-to-focus: true; | ||
|
||
Adw.Clamp { | ||
maximum-size: 600; | ||
|
||
ListBox results_listbox { | ||
styles [ | ||
"boxed-list", | ||
] | ||
|
||
row-activated => on_row_activated(); | ||
margin-top: 24; | ||
margin-bottom: 24; | ||
valign: start; | ||
selection-mode: browse; | ||
} | ||
} | ||
}; | ||
}; | ||
} | ||
|
||
StackPage { | ||
name: "placeholder"; | ||
child: Adw.StatusPage { | ||
icon-name: "applications-utilities-symbolic"; | ||
title: _("No Tools Found"); | ||
|
||
Button { | ||
styles [ | ||
"flat", | ||
] | ||
|
||
halign: center; | ||
action-name: "win.tools-settings"; | ||
|
||
Adw.ButtonContent { | ||
icon-name: "list-add-symbolic"; | ||
label: _("_Add Custom Tool"); | ||
use-underline: true; | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.