-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Cecil
committed
Mar 5, 2019
1 parent
9bf4f7d
commit 25b2a8b
Showing
9 changed files
with
86 additions
and
19 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,41 @@ | ||
Shoes.app do | ||
require 'shoes/data' | ||
require 'shoes/image' | ||
stack do | ||
flow do | ||
#@el = edit_line "#{DIR}/static/shoes-icon-walkabout.png" | ||
@el = edit_line "https://shoes.mvmanila.com/public/images/dino.jpg" | ||
@cb = check; para "Cached?" | ||
button "(Re)load" do | ||
@img.clear | ||
@img.append do | ||
image @el.text, cache: @cb.checked | ||
end | ||
end | ||
button "Show external cache" do | ||
@cview.clear | ||
@cview.append do | ||
eb = edit_box width: 400 | ||
DATABASE.each do |key, value| | ||
eb.append "#{key} -> #{value}" | ||
end | ||
end | ||
end | ||
button "clear all caches" do | ||
app.cache_clear :all | ||
quit if confirm "Please restart Shoes for best results" | ||
end | ||
para "Global cache: " | ||
@sw = switch width: 80 do |n| | ||
app.cache = n.active? | ||
@cb.checked = n.active? | ||
end | ||
end | ||
@img = flow {} | ||
@cview = flow {} | ||
end | ||
start do | ||
@sw.active = app.cache | ||
@cb.checked = app.cache | ||
end | ||
end |
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
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