Minor usability tweaks

This commit is contained in:
2025-04-25 22:52:25 +09:00
parent 28b0b2c6f3
commit 58a58c693f
13 changed files with 26 additions and 23 deletions
+9 -8
View File
@@ -3,7 +3,7 @@
%%% @end
-module(gd_gui).
-vsn("0.5.5").
-vsn("0.5.6").
-author("Craig Everett <craigeverett@qpq.swiss>").
-copyright("QPQ AG <info@qpq.swiss>").
-license("GPL-3.0-or-later").
@@ -96,6 +96,7 @@ init(Prefs) ->
WallB = wxButton:new(Frame, ?wxID_ANY, [{label, "[none]"}, {style, ?wxBORDER_NONE}]),
WallW = #w{name = wallet, id = wxButton:getId(WallB), wx = WallB},
ChainB = wxButton:new(Frame, ?wxID_ANY, [{label, "[ChainID]"}, {style, ?wxBORDER_NONE}]),
_ = wxButton:disable(ChainB),
ChainW = #w{name = chain, id = wxButton:getId(ChainB), wx = ChainB},
NodeB = wxButton:new(Frame, ?wxID_ANY, [{label, "[Node]"}, {style, ?wxBORDER_NONE}]),
NodeW = #w{name = node, id = wxButton:getId(NodeB), wx = NodeB},
@@ -181,10 +182,10 @@ init(Prefs) ->
#w{wx = Refresh} = lists:keyfind(refresh, #w.name, Buttons),
HistoryWin = wxScrolledWindow:new(Frame),
HistorySz = wxBoxSizer:new(?wxVERTICAL),
ok = wxScrolledWindow:setSizerAndFit(HistoryWin, HistorySz),
ok = wxScrolledWindow:setScrollRate(HistoryWin, 5, 5),
% HistoryWin = wxScrolledWindow:new(Frame),
% HistorySz = wxBoxSizer:new(?wxVERTICAL),
% ok = wxScrolledWindow:setSizerAndFit(HistoryWin, HistorySz),
% ok = wxScrolledWindow:setScrollRate(HistoryWin, 5, 5),
_ = wxSizer:add(MainSz, ChainSz, zxw:flags(base)),
_ = wxSizer:add(MainSz, AccountSz, zxw:flags(base)),
@@ -192,7 +193,7 @@ init(Prefs) ->
_ = wxSizer:add(MainSz, DetailsSz, zxw:flags(base)),
_ = wxSizer:add(MainSz, ActionsSz, zxw:flags(base)),
_ = wxSizer:add(MainSz, Refresh, zxw:flags(base)),
_ = wxSizer:add(MainSz, HistoryWin, zxw:flags(wide)),
% _ = wxSizer:add(MainSz, HistoryWin, zxw:flags(wide)),
ok = wxFrame:setSizer(Frame, MainSz),
ok = wxSizer:layout(MainSz),
@@ -207,8 +208,8 @@ init(Prefs) ->
picker = Picker,
id = ID_W,
balance = Balance,
buttons = Buttons,
history = #h{win = HistoryWin, sz = HistorySz}},
buttons = Buttons},
% history = #h{win = HistoryWin, sz = HistorySz}},
{Frame, State}.