Add Webarchy WPE/WebKit browser, SIP ZRTP/SRTP & codecs, xirc buffer fixes, and Noto web fonts

This commit is contained in:
Luxferre committed 2026-10-31 17:34:43 +02:00
1 parent 61768fa88e
commit d7335b5ebe
81 files changed
+3822 -248

No files matched your search

+21 -16
View File
@@ -1777,7 +1777,7 @@ int neoui_broadcast_theme_reload(const char* skip_plugin) {
const char* kPlugins[] = {
"dmenu", "locker", "xdrawer", "dialer", "calllog", "callscreen", "contacts",
"sms", "files", "camera", "themes", "modem", "networks", "ringtones",
"wallpapers", "music", "sip", "email", "irc", "tox", "smallweb", "gps",
"wallpapers", "music", "sip", "email", "irc", "tox", "smallweb", "webarchy", "gps",
"passcode", "engmenu"
};
std::string skip = (skip_plugin && skip_plugin[0]) ? skip_plugin : "";
@@ -2526,7 +2526,11 @@ int neoui_draw_menu_popup(const char* pipe_items, const char* pipe_icons,
int optCount = static_cast<int>(items.size());
if (optCount <= 0) return 0;
int maxVis = (max_visible_rows > 0) ? max_visible_rows : 6;
int winW = gCtx->w->width;
int winH = gCtx->w->height;
int rowH = 34;
int maxFitRows = std::max(1, (winH - NEO_HEADER_H - NEO_SOFTBAR_H - 4) / rowH);
int maxVis = std::min((max_visible_rows > 0) ? max_visible_rows : 6, maxFitRows);
int visCount = std::min(optCount, maxVis);
int optScroll = 0;
if (selected_idx >= visCount) {
@@ -2536,15 +2540,15 @@ int neoui_draw_menu_popup(const char* pipe_items, const char* pipe_icons,
optScroll = std::max(0, optCount - visCount);
}
int winW = gCtx->w->width;
int winH = gCtx->w->height;
int rowH = 34;
int menuH = visCount * rowH + 4;
int menuY = winH - NEO_SOFTBAR_H - menuH;
int menuY = std::max(static_cast<int>(NEO_HEADER_H), winH - NEO_SOFTBAR_H - menuH);
const auto& spec = gCtx->w->theme.spec;
neoui_fill_rect(8, menuY, winW - 16, menuH, spec.bgFooter);
neoui_draw_rect(8, menuY, winW - 16, menuH, spec.selBg);
neoui_fill_rect(6, menuY, winW - 12, menuH, spec.bgFooter);
neoui_draw_rect(6, menuY, winW - 12, menuH, spec.selBg);
bool hasScroll = (optCount > visCount);
int rowW = hasScroll ? (winW - 24) : (winW - 16);
for (int i = 0; i < visCount; ++i) {
int idx = optScroll + i;
@@ -2552,22 +2556,23 @@ int neoui_draw_menu_popup(const char* pipe_items, const char* pipe_icons,
int ry = menuY + 2 + i * rowH;
bool isSel = (idx == selected_idx);
if (isSel) {
neoui_fill_rect(10, ry, winW - 20, rowH, spec.selBg);
neoui_fill_rect(10, ry, 4, rowH, spec.accent);
neoui_fill_rect(8, ry, rowW, rowH, spec.selBg);
neoui_fill_rect(8, ry, 4, rowH, spec.accent);
}
int tx = 16;
int tx = 14;
if (idx < static_cast<int>(icons.size()) && !icons[idx].empty()) {
const char* ic = neoui_icon(icons[idx].c_str());
neoui_draw_text(NEO_FONT_ICON, isSel ? NEO_TEXT_YELLOW : NEO_TEXT_GREEN,
18, ry, rowH, ic, -1);
tx = 42;
16, ry, rowH, ic, -1);
tx = 38;
}
int textMaxW = hasScroll ? (winW - tx - 14) : (winW - tx - 10);
neoui_draw_text(NEO_FONT_MAIN, isSel ? NEO_TEXT_WHITE : NEO_TEXT_LIGHT, tx,
ry, rowH, items[idx].c_str(), winW - tx - 16);
ry, rowH, items[idx].c_str(), textMaxW);
}
if (optCount > visCount) {
neoui_draw_scrollbar(winW - 12, menuY + 2, menuH - 4, optCount, visCount,
if (hasScroll) {
neoui_draw_scrollbar(winW - 11, menuY + 2, menuH - 4, optCount, visCount,
optScroll);
}
return 1;