Skip to content

Commit

Permalink
v0.86b
Browse files Browse the repository at this point in the history
  • Loading branch information
milgra committed Dec 13, 2022
1 parent a53771c commit 0367267
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 10 deletions.
1 change: 0 additions & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Visual Music Player development roadmap

- context menu over empty table
- CTRL V context menu
- filter text remains visible when selecting artist/genre
- kinetic ui update
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(
'vmp',
'c',
version: '0.85b',
version: '0.86b',
license: 'MIT',
default_options: ['c_std=gnu99']
)
Expand Down
29 changes: 28 additions & 1 deletion res/html/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,33 @@
background-color: #121212FF;
}

.setrowa {
line-height: 35px;
margin-left: 10px;
width: 100%;
height: 40px;
background-color: #222222FF;
}

.setrowb {
line-height: 35px;
margin-left: 10px;
top: 30px;
width: 100%;
height: 40px;
background-color: #252525FF;
}

.setrowselected {
margin-left: 10px;
top: 60px;
width: 100%;
height: 40px;
line-height: 35px;
background-color: #004400FF;
}


.contextanim {
overflow: hidden;
}
Expand Down Expand Up @@ -465,7 +492,7 @@

#settingspopup {
width: 520px;
height: 280px;
height: 290px;
margin: auto;
}

Expand Down
6 changes: 3 additions & 3 deletions res/html/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@
<div id="settingstable" class="fullscale">
<div id="settingstablevertscroll" class="vertscroll"/>
<div id="settingstablehoriscroll" class="horiscroll"/>
<div id="settingstable_row_a" class="rowa rowtextcenter" type="label" text="row a"/>
<div id="settingstable_row_b" class="rowb rowtextcenter" type="label" text="row b"/>
<div id="settingstable_row_selected" class="rowselected rowtextcenter" type="label" text="row selected"/>
<div id="settingstable_row_a" class="setrowa rowtextcenter" type="label" text="row a"/>
<div id="settingstable_row_b" class="setrowb rowtextcenter" type="label" text="row b"/>
<div id="settingstable_row_selected" class="setrowselected rowtextcenter" type="label" text="row selected"/>
</div>
<div id="settingsclosebtn" class="closebtn toolbtn" type="button">
<div id="settingscloseicon" class="closeicon"/>
Expand Down
6 changes: 2 additions & 4 deletions src/vmp/ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,6 @@ void on_table_event(vh_table_event_t event)
{
if (ui.contextpopupcont->parent == NULL)
{
/* ku_view_add_subview(ui.view_base, ui.contextpopupcont); */
/* ku_view_layout(ui.view_base, ui.view_base->style.scale); */

if (ui.contextpopupcont->parent == NULL)
{
ku_view_t* contextpopup = ui.contextpopupcont->views->data[0];
Expand All @@ -679,6 +676,7 @@ void on_table_event(vh_table_event_t event)
if (iframe.x + iframe.w > ui.window->width) iframe.x = ui.window->width - iframe.w;

ku_view_add_subview(ui.view_base, ui.contextpopupcont);
ku_view_layout(ui.view_base, ui.view_base->style.scale);
ku_view_set_frame(contextpopup, iframe);

ku_view_t* contexttableevt = GETV(ui.contextpopupcont, "contexttable_event");
Expand Down Expand Up @@ -959,8 +957,8 @@ void ui_init(int width, int height, float scale, ku_window_t* window)

VADDR(items, mapu_pair((mpair_t){"value", STRNF(200, "Visual Music Player v%s beta by Milan Toth", VMP_VERSION)}));
VADDR(items, mapu_pair((mpair_t){"value", STRNF(200, "Free and Open Source Software")}));
VADDR(items, mapu_pair((mpair_t){"value", STRNF(200, "")}));
VADDR(items, mapu_pair((mpair_t){"value", STRNF(200, "Donate on Paypal")}));
VADDR(items, mapu_pair((mpair_t){"value", STRNF(200, "")}));
VADDR(items, mapu_pair((mpair_t){"value", STRNF(200, "Organize Library : %s", config_get("lib_organize"))}));
VADDR(items, mapu_pair((mpair_t){"value", STRNF(200, "Library Path : %s", config_get("lib_path"))}));

Expand Down

0 comments on commit 0367267

Please sign in to comment.