Skip to content

Commit

Permalink
try new gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
x86y committed Mar 18, 2024
1 parent 6df486a commit 56fa8c8
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 9 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
- name: Install Rust Windows target
run: |
rustup update && rustup target add x86_64-pc-windows-gnu
sudo apt-get update
sudo apt-get install binutils-mingw-w64 mingw-w64
- name: Build Linux
run: |
cargo build --release
Expand All @@ -37,8 +39,8 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
beacon_x86_64-unknown-linux-gnu
beacon_x86_64-pc-windows-gnu.exe
dynasty_x86_64-unknown-linux-gnu
dynasty_x86_64-pc-windows-gnu.exe
macos:
runs-on: macos-11
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Dynasty
A cross-platform native desktop application for trading cryptocurrency. Only Binance and Spot Trading are supported for now. The tool is made for my personal use, but feature requests and/or issues are welcome.
To use set DYN_PUB and DYN_SEC environment variables to your Binance API keys respectively.
Restart the app after entering the api keys in the settings menu.

## in action:
![CleanShot 2023-09-16 at 20 04 26](assets/demo.gif)
Expand Down
1 change: 0 additions & 1 deletion src/views/panes/balances.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

use binance::rest_model::Balance;
use iced::{
widget::{button, container, row, scrollable, svg, text, Column, Space},
Expand Down
30 changes: 25 additions & 5 deletions src/views/panes/watchlist.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use crate::views::components::{better_btn::BetterBtn, input::Inp, unstyled_btn::UnstyledBtn};
use crate::{theme::h2c, Message};
use iced::{
widget::{button, column, container, row, scrollable, text, text_input, Column, Space},
Element, Font, Length,
};
use std::collections::HashMap;
use crate::views::components::{better_btn::BetterBtn, input::Inp, unstyled_btn::UnstyledBtn};

#[derive(Debug, Clone, Copy, PartialEq)]
pub enum WatchlistFilter {
Expand Down Expand Up @@ -64,10 +64,30 @@ pub fn watchlist_view<'a>(

column![
row![
filter_button!(text("\u{F588}").font(Font::with_name("bootstrap-icons")), WatchlistFilter::Favorites, filter, Message::ApplyWatchlistFilter(WatchlistFilter::Favorites)),
filter_button!("BTC", WatchlistFilter::Btc, filter, Message::ApplyWatchlistFilter(WatchlistFilter::Btc)),
filter_button!("ETH", WatchlistFilter::Eth, filter, Message::ApplyWatchlistFilter(WatchlistFilter::Eth)),
filter_button!("ALTS", WatchlistFilter::Alts, filter, Message::ApplyWatchlistFilter(WatchlistFilter::Alts)),
filter_button!(
text("\u{F588}").font(Font::with_name("bootstrap-icons")),
WatchlistFilter::Favorites,
filter,
Message::ApplyWatchlistFilter(WatchlistFilter::Favorites)
),
filter_button!(
"BTC",
WatchlistFilter::Btc,
filter,
Message::ApplyWatchlistFilter(WatchlistFilter::Btc)
),
filter_button!(
"ETH",
WatchlistFilter::Eth,
filter,
Message::ApplyWatchlistFilter(WatchlistFilter::Eth)
),
filter_button!(
"ALTS",
WatchlistFilter::Alts,
filter,
Message::ApplyWatchlistFilter(WatchlistFilter::Alts)
),
text_input("type to filter", search)
.on_input(Message::WatchlistFilterInput)
.style(iced::theme::TextInput::Custom(Box::new(Inp {})))
Expand Down

0 comments on commit 56fa8c8

Please sign in to comment.