Musyx Mobile: Android TV player for Yandex Music

Kotlin, Compose for TV and Media3 port of the desktop Musyx, with
device-code sign-in, Home, My Wave, search, collection, detail pages,
Now Playing with queue and lyrics, and settings for streaming quality,
appearance, font size (small, medium, large) and language.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
yuriy.pandClaude Opus 5.5 committed 2026-10-16 22:14:54 +06:00
commit 46610d95fa
217 files changed
+26144

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
//! Back button and search field above the content.
use iced::widget::{button, row, text_input};
use iced::{Alignment, Element};
use crate::app::Message;
use crate::screens::search::Msg;
use crate::ui::icons::{Icon, icon};
use crate::ui::theme::{self, Tokens, size, space};
use crate::i18n::tr;
pub const SEARCH_ID: &str = "search";
pub fn view<'a>(t: &'static Tokens, can_go_back: bool, query: &str) -> Element<'a, Message> {
let back = button(icon(Icon::Back, if can_go_back { t.fg } else { t.muted }))
.padding(8)
.style(theme::icon_button(None))
.on_press_maybe(can_go_back.then_some(Message::Back));
let search = text_input(tr("Search artists, tracks, podcasts"), query)
.id(SEARCH_ID)
.on_input(|text| Message::Search(Msg::Changed(text)))
.on_submit(Message::Search(Msg::Submit))
.font(theme::BODY)
.size(size::BODY)
.padding([10, 16])
.width(420)
.style(theme::search_field);
row![back, search]
.spacing(10)
.align_y(Alignment::Center)
.padding([14.0, space::GUTTER])
.into()
}