import { handler, string2RGB, platformSvg, msgbox,translate } from "./common.js"; import { app, formatId, createNewConnect,svg_menu } from "./index.js"; // TODO check app obj // TODO transform const svg_tile = ; const svg_list = ; const search_icon = ; const clear_icon = ; function getSessionsStyleOption(type) { return (type || "recent") + "-sessions-style"; } export function getSessionsStyle(type) { var v = handler.xcall("get_local_option",getSessionsStyleOption(type)); if (!v) v = type == "ab" ? "list" : "tile"; return v; } // Fixed // function stupidUpdate(me) { // /* hidden is workaround of stupid sciter bug */ // me.hidden = true; // me.update(); // self.timer(60ms, function() { // me.hidden = false; // me.update(); // }); // } export class SearchBar extends Element { parent; value = ""; this(props) { this.parent = props.parent; } render() { // TODO @{this.search_id} TIS: return (