mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 18:16:31 +03:00
eepp: Fix in uicodeeditor highlight search, improved performance, still is an unsafe op. Fixed a crash when dropping files when no editor is open.
ecode: Fix VS2022 build.
This commit is contained in:
@@ -3124,397 +3124,397 @@ void App::init( const LogLevel& logLevel, std::string file, const Float& pidelDe
|
||||
mUISceneNode->combineStyleSheet( panelUI, false );
|
||||
|
||||
const std::string baseUI = R"html(
|
||||
<style>
|
||||
TextInput#search_find,
|
||||
TextInput#search_replace,
|
||||
TextInput#locate_find,
|
||||
TextInput#global_search_find,
|
||||
TextInput.small_input,
|
||||
.search_str {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
font-family: monospace;
|
||||
}
|
||||
#search_bar,
|
||||
#global_search_bar,
|
||||
#locate_bar {
|
||||
padding-left: 4dp;
|
||||
padding-right: 4dp;
|
||||
padding-bottom: 3dp;
|
||||
margin-bottom: 2dp;
|
||||
margin-top: 2dp;
|
||||
}
|
||||
.close_button {
|
||||
width: 12dp;
|
||||
height: 12dp;
|
||||
border-radius: 6dp;
|
||||
background-color: var(--icon-back-hover);
|
||||
foreground-image: poly(line, var(--icon-line-hover), "0dp 0dp, 6dp 6dp"), poly(line, var(--icon-line-hover), "6dp 0dp, 0dp 6dp");
|
||||
foreground-position: 3dp 3dp, 3dp 3dp;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
.close_button:hover {
|
||||
background-color: var(--icon-back-alert);
|
||||
}
|
||||
#settings {
|
||||
color: var(--floating-icon);
|
||||
font-family: icon;
|
||||
font-size: 16dp;
|
||||
margin-top: 6dp;
|
||||
margin-right: 22dp;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
#settings:hover {
|
||||
color: var(--primary);
|
||||
}
|
||||
#doc_info {
|
||||
background-color: var(--back);
|
||||
margin-bottom: 22dp;
|
||||
margin-right: 22dp;
|
||||
border-radius: 8dp;
|
||||
padding: 6dp;
|
||||
opacity: 0.8;
|
||||
}
|
||||
#doc_info > TextView {
|
||||
color: var(--font);
|
||||
}
|
||||
#search_find.error,
|
||||
#search_replace.error {
|
||||
border-color: #ff4040;
|
||||
}
|
||||
TableView#locate_bar_table > tableview::row > tableview::cell:nth-child(2) {
|
||||
color: var(--font-hint);
|
||||
}
|
||||
TableView#locate_bar_table > tableview::row:selected > tableview::cell:nth-child(2) {
|
||||
color: var(--font);
|
||||
}
|
||||
.search_tree treeview::cell {
|
||||
font-family: monospace;
|
||||
}
|
||||
#global_search_history {
|
||||
padding-top: 0dp;
|
||||
padding-bottom: 0dp;
|
||||
}
|
||||
.doc_alert {
|
||||
padding: 16dp;
|
||||
border-width: 2dp;
|
||||
border-radius: 4dp;
|
||||
border-color: var(--primary);
|
||||
background-color: var(--back);
|
||||
margin-right: 24dp;
|
||||
margin-top: 24dp;
|
||||
cursor: arrow;
|
||||
}
|
||||
#image_container {
|
||||
background-color: #00000066;
|
||||
}
|
||||
#image_close {
|
||||
color: var(--floating-icon);
|
||||
font-family: icon;
|
||||
font-size: 22dp;
|
||||
margin-top: 32dp;
|
||||
margin-right: 22dp;
|
||||
}
|
||||
#global_search_layout {
|
||||
background-color: var(--back);
|
||||
}
|
||||
#global_search_layout > .status_box,
|
||||
#global_search_layout > .replace_box {
|
||||
padding: 4dp;
|
||||
}
|
||||
.notification {
|
||||
background-color: var(--button-back);
|
||||
border-color: var(--button-border);
|
||||
border-width: 1dp;
|
||||
border-radius: 8dp;
|
||||
color: var(--font);
|
||||
padding: 4dp;
|
||||
min-height: 48dp;
|
||||
margin-bottom: 8dp;
|
||||
opacity: 0.8;
|
||||
}
|
||||
#panel tab::icon {
|
||||
margin-left: 0dp;
|
||||
margin-right: 0dp;
|
||||
}
|
||||
#panel tab:selected {
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
background-image: rectangle(solid, var(--primary), 0º, 1dp);
|
||||
background-size: 80% 1dp;
|
||||
background-position-x: center;
|
||||
background-position-y: 90%;
|
||||
border-left-width: 0dp;
|
||||
border-right-width: 0dp;
|
||||
border-top-width: 0dp;
|
||||
border-top-left-radius: 0dp;
|
||||
border-top-right-radius: 0dp;
|
||||
}
|
||||
#check_for_updates .check_at_startup {
|
||||
margin: 6dp 0dp 6p 0dp;
|
||||
}
|
||||
#project_view_empty {
|
||||
padding-top: 8dp;
|
||||
}
|
||||
#project_view_empty > * {
|
||||
margin-left: 8dp;
|
||||
margin-right: 8dp;
|
||||
}
|
||||
#status_bar {
|
||||
background-color: var(--list-back);
|
||||
padding-top: 1dp;
|
||||
padding-bottom: 1dp;
|
||||
}
|
||||
#status_bar > TextView {
|
||||
padding-left: 4dp;
|
||||
padding-right: 5dp;
|
||||
background-color: var(--list-back);
|
||||
border-right-color: var(--tab-line);
|
||||
font-size: 10dp;
|
||||
}
|
||||
#status_bar > TextView:hover {
|
||||
background-color: var(--item-hover);
|
||||
}
|
||||
#status_bar > TextView.selected {
|
||||
background-color: var(--primary);
|
||||
}
|
||||
.settings_panel {
|
||||
padding: 4dp;
|
||||
}
|
||||
.settings_panel .title {
|
||||
font-size:17dp;
|
||||
}
|
||||
.settings_panel .subtitle {
|
||||
font-size:15dp;
|
||||
margin-top: 12dp;
|
||||
}
|
||||
.settings_panel > .subtitle {
|
||||
margin-top: 4dp;
|
||||
}
|
||||
.settings_panel .advance_opt {
|
||||
font-size:15dp;
|
||||
}
|
||||
.settings_panel .separator {
|
||||
margin-top: 4dp;
|
||||
background-color: var(--font-hint);
|
||||
}
|
||||
.settings_panel PushButton {
|
||||
padding-top: 2dp;
|
||||
padding-bottom: 2dp;
|
||||
}
|
||||
.settings_panel .build_step,
|
||||
.settings_panel .os_select {
|
||||
background-color: var(--list-back);
|
||||
border-width: 1dp;
|
||||
border-color: var(--button-border);
|
||||
padding: 4dp;
|
||||
margin-top: 4dp;
|
||||
}
|
||||
.settings_panel .build_step > LinearLayout > LinearLayout {
|
||||
margin-bottom: 3dp;
|
||||
}
|
||||
.settings_panel .build_step TextInput {
|
||||
padding: 2dp 4dp 2dp 4dp;
|
||||
}
|
||||
.settings_panel .add_build_step {
|
||||
margin-top: 4dp;
|
||||
}
|
||||
.settings_panel .build_steps {
|
||||
margin-bottom: 4dp;
|
||||
}
|
||||
.settings_panel .build_step:first-child .move_up,
|
||||
.settings_panel .build_step:first-child .remove_item {
|
||||
enabled: false;
|
||||
}
|
||||
.settings_panel .build_step:last-child .move_down {
|
||||
enabled: false;
|
||||
}
|
||||
.settings_panel .build_step > .details {
|
||||
margin-top: 2dp;
|
||||
}
|
||||
.settings_panel .build_step > .header > PushButton {
|
||||
margin-left: 2dp;
|
||||
}
|
||||
.settings_panel .build_step > .header > .remove_item:disabled,
|
||||
.settings_panel .build_step > .header > .move_up:disabled,
|
||||
.settings_panel .build_step > .header > .move_down:disabled {
|
||||
tint: var(--icon);
|
||||
}
|
||||
.settings_panel .os_select > CheckBox {
|
||||
margin-right: 8dp;
|
||||
}
|
||||
.settings_panel .save_cont > PushButton {
|
||||
margin: 8dp 0dp 0dp 4dp;
|
||||
padding: 4dp 16dp 4dp 16dp;
|
||||
}
|
||||
.settings_panel .build_types > DropDownList,
|
||||
.settings_panel .output_parser > DropDownList,
|
||||
.settings_panel .span {
|
||||
margin-top: 4dp;
|
||||
}
|
||||
.settings_panel #build_type_list {
|
||||
margin-right: 4dp;
|
||||
}
|
||||
.settings_panel .build_types_cont {
|
||||
row-valign: center;
|
||||
}
|
||||
.settings_panel .inner_box {
|
||||
padding-top: 8dp;
|
||||
visible: false;
|
||||
}
|
||||
.settings_panel .inner_box .build_environment > .subtitle {
|
||||
margin-top: 0dp;
|
||||
}
|
||||
.settings_panel .advanced_options {
|
||||
margin-top: 12dp;
|
||||
border-radius: 4dp;
|
||||
padding: 4dp;
|
||||
background-color: rgba(0,0,0, 0.1);
|
||||
}
|
||||
.settings_panel .advanced_options .title {
|
||||
padding-bottom: 4dp;
|
||||
border-radius: 4dp;
|
||||
background-color: transparent;
|
||||
transition: background-color 100ms;
|
||||
}
|
||||
.settings_panel .advanced_options .title:hover {
|
||||
background-color: var(--primary);
|
||||
}
|
||||
.settings_panel .output_parser .output_parser_rules {
|
||||
background-color: var(--list-back);
|
||||
}
|
||||
.settings_panel .output_parser .output_parser_rules {
|
||||
margin-top: 4dp;
|
||||
}
|
||||
.settings_panel .output_parser .output_parser_rules > TextView {
|
||||
padding-left: 4dp;
|
||||
min-height: 24dp;
|
||||
layout-gravity: center;
|
||||
}
|
||||
.settings_panel .output_parser .output_parser_rules > TextView:first-child {
|
||||
border-width: 1dp;
|
||||
border-right-color: var(--button-border);
|
||||
}
|
||||
.settings_panel .output_parser .output_parser_rules > PushButton {
|
||||
layout-gravity: center;
|
||||
}
|
||||
.settings_panel .details_but {
|
||||
icon: icon(arrow-up-s, 10dp);
|
||||
inner-widget-orientation: widgettextboxicon;
|
||||
}
|
||||
.settings_panel .details_but.contracted {
|
||||
icon: icon(arrow-down-s, 10dp);
|
||||
}
|
||||
.settings_panel > .advanced_options > .title > Image {
|
||||
icon: icon(arrow-down-s, 24dp);
|
||||
}
|
||||
.settings_panel > .advanced_options > .title > Image.expanded {
|
||||
icon: icon(arrow-up-s, 24dp);
|
||||
}
|
||||
.settings_panel > .advanced_options > LinearLayout.inner_box.visible {
|
||||
visible: true;
|
||||
}
|
||||
</style>
|
||||
<MainLayout id="main_layout" layout_width="match_parent" layout_height="match_parent">
|
||||
<Splitter id="project_splitter" layout_width="match_parent" layout_height="match_parent">
|
||||
<TabWidget id="panel" tabbar-hide-on-single-tab="true" tabbar-allow-rearrange="true" min-tab-width="32dp" max-tab-width="32dp">
|
||||
<RelativeLayout id="project_view_cont" layout_width="match_parent" layout_height="match_parent">
|
||||
<TreeView id="project_view" layout_width="match_parent" layout_height="match_parent" />
|
||||
<vbox id="project_view_empty" layout_gravity="top|center_horizontal" layout_width="match_parent" layout_height="wrap_content">
|
||||
<TextView text-align="center" layout_width="match_parent" layout_gravity="center" text='@string(you-have-not-yet-opened-a-folder, "You have not yet opened a folder.")' word-wrap="true" />
|
||||
<PushButton layout_width="match_parent" layout_gravity="center" id="open_folder" text='@string(open_folder, "Open Folder")' margin-top="4dp" />
|
||||
<PushButton layout_width="match_parent" layout_gravity="center" id="open_recent_folder" text='@string(open-recent-folder, "Open Recent Folder...")' margin-top="4dp" />
|
||||
</vbox>
|
||||
</RelativeLayout>
|
||||
<Tab text='@string("project", "Project")' owns="project_view_cont" text-as-fallback="true" icon="icon(folder-open, 12dp)" />
|
||||
</TabWidget>
|
||||
<vbox>
|
||||
<Splitter id="main_splitter" layout_width="match_parent" layout_height="0" layout_weight="1" orientation="vertical">
|
||||
<RelativeLayout>
|
||||
<vbox id="code_container" layout_width="match_parent" layout_height="match_parent"></vbox>
|
||||
<hbox id="doc_info" layout_width="wrap_content" layout_height="wrap_content" layout_gravity="bottom|right" enabled="false">
|
||||
<TextView id="doc_info_text" layout_width="wrap_content" layout_height="wrap_content" />
|
||||
</hbox>
|
||||
<RelativeLayout id="image_container" layout_width="match_parent" layout_height="match_parent" visible="false" enabled="false">
|
||||
<Image layout_width="match_parent" layout_height="match_parent" scaleType="fit_inside" gravity="center" enabled="false" layout_gravity="center" />
|
||||
<TextView id="image_close" layout_width="wrap_content" layout_height="wrap_content" text="" layout_gravity="top|right" enabled="false" />
|
||||
<Loader id="image_loader" layout_width="64dp" layout_height="64dp" outline-thickness="6dp" layout_gravity="center" visible="false" />
|
||||
</RelativeLayout>
|
||||
<vbox id="notification_center" layout_width="256dp" layout_height="wrap_content"
|
||||
layout_gravity="right|bottom" margin-right="22dp" margin-bottom="56dp">
|
||||
</vbox>
|
||||
</RelativeLayout>
|
||||
</Splitter>
|
||||
<searchbar id="search_bar" layout_width="match_parent" layout_height="wrap_content">
|
||||
<vbox layout_width="wrap_content" layout_height="wrap_content" margin-right="4dp">
|
||||
<TextView layout_width="wrap_content" layout_height="18dp" text='@string("find_text", "Find:")' margin-bottom="2dp" />
|
||||
<TextView layout_width="wrap_content" layout_height="18dp" text='@string("replace_with_text", "Replace with:")' />
|
||||
</vbox>
|
||||
<vbox layout_width="0" layout_weight="1" layout_height="wrap_content" margin-right="4dp">
|
||||
<TextInput id="search_find" layout_width="match_parent" layout_height="18dp" padding="0" margin-bottom="2dp" />
|
||||
<TextInput id="search_replace" layout_width="match_parent" layout_height="18dp" padding="0" />
|
||||
</vbox>
|
||||
<vbox layout_width="wrap_content" layout_height="wrap_content" margin-right="4dp">
|
||||
<CheckBox id="case_sensitive" layout_width="wrap_content" layout_height="wrap_content" text='@string(case_sensitive, "Case sensitive")' selected="false" />
|
||||
<CheckBox id="lua_pattern" layout_width="wrap_content" layout_height="wrap_content" text='@string(lua_pattern, "Lua Pattern")' selected="false" />
|
||||
</vbox>
|
||||
<vbox layout_width="wrap_content" layout_height="wrap_content" margin-right="4dp">
|
||||
<CheckBox id="whole_word" layout_width="wrap_content" layout_height="wrap_content" text='@string(match_whole_word, "Match Whole Word")' selected="false" />
|
||||
<CheckBox id="escape_sequence" layout_width="wrap_content" layout_height="wrap_content" text='@string(use_escape_sequences, "Use escape sequences")' selected="false" tooltip='@string(escape_sequence_tooltip, "Replace \\, \t, \n, \r and \uXXXX (Unicode characters) with the corresponding control")' />
|
||||
</vbox>
|
||||
<vbox layout_width="wrap_content" layout_height="wrap_content">
|
||||
<hbox layout_width="wrap_content" layout_height="wrap_content" margin-bottom="2dp">
|
||||
<PushButton id="find_prev" layout_width="wrap_content" layout_height="18dp" text='@string(previous, "Previous")' margin-right="4dp" />
|
||||
<PushButton id="find_next" layout_width="wrap_content" layout_height="18dp" text='@string(next, "Next")' margin-right="4dp" />"
|
||||
<PushButton id="select_all" layout_width="wrap_content" layout_height="18dp" text='@string(select_all, "Select All")' />
|
||||
<RelativeLayout layout_width="0" layout_weight="1" layout_height="18dp">
|
||||
<Widget id="searchbar_close" class="close_button" layout_width="wrap_content" layout_height="wrap_content" layout_gravity="center_vertical|right" margin-right="2dp" />
|
||||
</RelativeLayout>
|
||||
</hbox>
|
||||
<hbox layout_width="wrap_content" layout_height="wrap_content">
|
||||
<PushButton id="replace" layout_width="wrap_content" layout_height="18dp" text='@string(replace, "Replace")' margin-right="4dp" />
|
||||
<PushButton id="replace_find" layout_width="wrap_content" layout_height="18dp" text='@string(replace_and_find, "Replace & Find")' margin-right="4dp" />
|
||||
<PushButton id="replace_all" layout_width="wrap_content" layout_height="18dp" text='@string(replace_all, "Replace All")' />
|
||||
</hbox>
|
||||
</vbox>
|
||||
</searchbar>
|
||||
<locatebar id="locate_bar" layout_width="match_parent" layout_height="wrap_content" visible="false">
|
||||
<TextInput id="locate_find" layout_width="0" layout_weight="1" layout_height="18dp" padding="0" margin-bottom="2dp" margin-right="4dp" hint='@string(type_to_locate, "Type to Locate")' />
|
||||
<Widget id="locatebar_close" class="close_button" layout_width="wrap_content" layout_height="wrap_content" layout_gravity="center_vertical|right"/>
|
||||
</locatebar>
|
||||
<globalsearchbar id="global_search_bar" layout_width="match_parent" layout_height="wrap_content">
|
||||
<hbox layout_width="match_parent" layout_height="wrap_content">
|
||||
<TextView layout_width="wrap_content" layout_height="wrap_content" text='@string(search_for, "Search for:")' margin-right="4dp" />
|
||||
<vbox layout_width="0" layout_weight="1" layout_height="wrap_content">
|
||||
<TextInput id="global_search_find" layout_width="match_parent" layout_height="wrap_content" layout_height="18dp" padding="0" margin-bottom="2dp" />
|
||||
<hbox layout_width="match_parent" layout_height="wrap_content" margin-bottom="4dp">
|
||||
<CheckBox id="case_sensitive" layout_width="wrap_content" layout_height="wrap_content" text='@string(case_sensitive, "Case sensitive")' selected="true" />
|
||||
<CheckBox id="whole_word" layout_width="wrap_content" layout_height="wrap_content" text='@string(match_whole_word, "Match Whole Word")' selected="false" margin-left="8dp" />
|
||||
<CheckBox id="lua_pattern" layout_width="wrap_content" layout_height="wrap_content" text='@string(lua_pattern, "Lua Pattern")' selected="false" margin-left="8dp" />
|
||||
<CheckBox id="escape_sequence" layout_width="wrap_content" layout_height="wrap_content" text='@string(use_escape_sequences, "Use escape sequences")' margin-left="8dp" selected="false" tooltip='@string(escape_sequence_tooltip, "Replace \\, \t, \n, \r and \uXXXX (Unicode characters) with the corresponding control")' />
|
||||
</hbox>
|
||||
<hbox layout_width="match_parent" layout_height="wrap_content">
|
||||
<TextView layout_width="wrap_content" layout_height="wrap_content" text='@string(history, "History:")' margin-right="4dp" layout_height="18dp" />
|
||||
<DropDownList id="global_search_history" layout_width="0" layout_height="18dp" layout_weight="1" margin-right="4dp" />
|
||||
<PushButton id="global_search_clear_history" layout_width="wrap_content" layout_height="18dp" text='@string(clear_history, "Clear History")' margin-right="4dp" />
|
||||
<PushButton id="global_search" layout_width="wrap_content" layout_height="18dp" text='@string(search, "Search")' margin-right="4dp" />
|
||||
<PushButton id="global_search_replace" layout_width="wrap_content" layout_height="18dp" text='@string(search_and_replace, "Search & Replace")' />
|
||||
</hbox>
|
||||
</vbox>
|
||||
<Widget id="global_searchbar_close" class="close_button" layout_width="wrap_content" layout_height="wrap_content" layout_gravity="top|right" margin-left="4dp" margin-top="4dp" />
|
||||
</hbox>
|
||||
</globalsearchbar>
|
||||
<statusbar layout_width="match_parent" layout_height="wrap_content" id="status_bar">
|
||||
<TextView class="status_but" id="status_locate_bar" text="1 Locate" />
|
||||
<TextView class="status_but" id="status_global_search_bar" text="2 Search" />
|
||||
<TextView class="status_but" id="status_build_output" text="3 Build Output" />
|
||||
<TextView class="status_but" id="status_terminal" text="4 Terminal" />
|
||||
<View layout_width="0" layout_weight="1" layout_height="match_parent" />
|
||||
</statusbar>
|
||||
<style>
|
||||
TextInput#search_find,
|
||||
TextInput#search_replace,
|
||||
TextInput#locate_find,
|
||||
TextInput#global_search_find,
|
||||
TextInput.small_input,
|
||||
.search_str {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
font-family: monospace;
|
||||
}
|
||||
#search_bar,
|
||||
#global_search_bar,
|
||||
#locate_bar {
|
||||
padding-left: 4dp;
|
||||
padding-right: 4dp;
|
||||
padding-bottom: 3dp;
|
||||
margin-bottom: 2dp;
|
||||
margin-top: 2dp;
|
||||
}
|
||||
.close_button {
|
||||
width: 12dp;
|
||||
height: 12dp;
|
||||
border-radius: 6dp;
|
||||
background-color: var(--icon-back-hover);
|
||||
foreground-image: poly(line, var(--icon-line-hover), "0dp 0dp, 6dp 6dp"), poly(line, var(--icon-line-hover), "6dp 0dp, 0dp 6dp");
|
||||
foreground-position: 3dp 3dp, 3dp 3dp;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
.close_button:hover {
|
||||
background-color: var(--icon-back-alert);
|
||||
}
|
||||
#settings {
|
||||
color: var(--floating-icon);
|
||||
font-family: icon;
|
||||
font-size: 16dp;
|
||||
margin-top: 6dp;
|
||||
margin-right: 22dp;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
#settings:hover {
|
||||
color: var(--primary);
|
||||
}
|
||||
#doc_info {
|
||||
background-color: var(--back);
|
||||
margin-bottom: 22dp;
|
||||
margin-right: 22dp;
|
||||
border-radius: 8dp;
|
||||
padding: 6dp;
|
||||
opacity: 0.8;
|
||||
}
|
||||
#doc_info > TextView {
|
||||
color: var(--font);
|
||||
}
|
||||
#search_find.error,
|
||||
#search_replace.error {
|
||||
border-color: #ff4040;
|
||||
}
|
||||
TableView#locate_bar_table > tableview::row > tableview::cell:nth-child(2) {
|
||||
color: var(--font-hint);
|
||||
}
|
||||
TableView#locate_bar_table > tableview::row:selected > tableview::cell:nth-child(2) {
|
||||
color: var(--font);
|
||||
}
|
||||
.search_tree treeview::cell {
|
||||
font-family: monospace;
|
||||
}
|
||||
#global_search_history {
|
||||
padding-top: 0dp;
|
||||
padding-bottom: 0dp;
|
||||
}
|
||||
.doc_alert {
|
||||
padding: 16dp;
|
||||
border-width: 2dp;
|
||||
border-radius: 4dp;
|
||||
border-color: var(--primary);
|
||||
background-color: var(--back);
|
||||
margin-right: 24dp;
|
||||
margin-top: 24dp;
|
||||
cursor: arrow;
|
||||
}
|
||||
#image_container {
|
||||
background-color: #00000066;
|
||||
}
|
||||
#image_close {
|
||||
color: var(--floating-icon);
|
||||
font-family: icon;
|
||||
font-size: 22dp;
|
||||
margin-top: 32dp;
|
||||
margin-right: 22dp;
|
||||
}
|
||||
#global_search_layout {
|
||||
background-color: var(--back);
|
||||
}
|
||||
#global_search_layout > .status_box,
|
||||
#global_search_layout > .replace_box {
|
||||
padding: 4dp;
|
||||
}
|
||||
.notification {
|
||||
background-color: var(--button-back);
|
||||
border-color: var(--button-border);
|
||||
border-width: 1dp;
|
||||
border-radius: 8dp;
|
||||
color: var(--font);
|
||||
padding: 4dp;
|
||||
min-height: 48dp;
|
||||
margin-bottom: 8dp;
|
||||
opacity: 0.8;
|
||||
}
|
||||
#panel tab::icon {
|
||||
margin-left: 0dp;
|
||||
margin-right: 0dp;
|
||||
}
|
||||
#panel tab:selected {
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
background-image: rectangle(solid, var(--primary), 0º, 1dp);
|
||||
background-size: 80% 1dp;
|
||||
background-position-x: center;
|
||||
background-position-y: 90%;
|
||||
border-left-width: 0dp;
|
||||
border-right-width: 0dp;
|
||||
border-top-width: 0dp;
|
||||
border-top-left-radius: 0dp;
|
||||
border-top-right-radius: 0dp;
|
||||
}
|
||||
#check_for_updates .check_at_startup {
|
||||
margin: 6dp 0dp 6p 0dp;
|
||||
}
|
||||
#project_view_empty {
|
||||
padding-top: 8dp;
|
||||
}
|
||||
#project_view_empty > * {
|
||||
margin-left: 8dp;
|
||||
margin-right: 8dp;
|
||||
}
|
||||
#status_bar {
|
||||
background-color: var(--list-back);
|
||||
padding-top: 1dp;
|
||||
padding-bottom: 1dp;
|
||||
}
|
||||
#status_bar > TextView {
|
||||
padding-left: 4dp;
|
||||
padding-right: 5dp;
|
||||
background-color: var(--list-back);
|
||||
border-right-color: var(--tab-line);
|
||||
font-size: 10dp;
|
||||
}
|
||||
#status_bar > TextView:hover {
|
||||
background-color: var(--item-hover);
|
||||
}
|
||||
#status_bar > TextView.selected {
|
||||
background-color: var(--primary);
|
||||
}
|
||||
.settings_panel {
|
||||
padding: 4dp;
|
||||
}
|
||||
.settings_panel .title {
|
||||
font-size:17dp;
|
||||
}
|
||||
.settings_panel .subtitle {
|
||||
font-size:15dp;
|
||||
margin-top: 12dp;
|
||||
}
|
||||
.settings_panel > .subtitle {
|
||||
margin-top: 4dp;
|
||||
}
|
||||
.settings_panel .advance_opt {
|
||||
font-size:15dp;
|
||||
}
|
||||
.settings_panel .separator {
|
||||
margin-top: 4dp;
|
||||
background-color: var(--font-hint);
|
||||
}
|
||||
.settings_panel PushButton {
|
||||
padding-top: 2dp;
|
||||
padding-bottom: 2dp;
|
||||
}
|
||||
.settings_panel .build_step,
|
||||
.settings_panel .os_select {
|
||||
background-color: var(--list-back);
|
||||
border-width: 1dp;
|
||||
border-color: var(--button-border);
|
||||
padding: 4dp;
|
||||
margin-top: 4dp;
|
||||
}
|
||||
.settings_panel .build_step > LinearLayout > LinearLayout {
|
||||
margin-bottom: 3dp;
|
||||
}
|
||||
.settings_panel .build_step TextInput {
|
||||
padding: 2dp 4dp 2dp 4dp;
|
||||
}
|
||||
.settings_panel .add_build_step {
|
||||
margin-top: 4dp;
|
||||
}
|
||||
.settings_panel .build_steps {
|
||||
margin-bottom: 4dp;
|
||||
}
|
||||
.settings_panel .build_step:first-child .move_up,
|
||||
.settings_panel .build_step:first-child .remove_item {
|
||||
enabled: false;
|
||||
}
|
||||
.settings_panel .build_step:last-child .move_down {
|
||||
enabled: false;
|
||||
}
|
||||
.settings_panel .build_step > .details {
|
||||
margin-top: 2dp;
|
||||
}
|
||||
.settings_panel .build_step > .header > PushButton {
|
||||
margin-left: 2dp;
|
||||
}
|
||||
.settings_panel .build_step > .header > .remove_item:disabled,
|
||||
.settings_panel .build_step > .header > .move_up:disabled,
|
||||
.settings_panel .build_step > .header > .move_down:disabled {
|
||||
tint: var(--icon);
|
||||
}
|
||||
.settings_panel .os_select > CheckBox {
|
||||
margin-right: 8dp;
|
||||
}
|
||||
.settings_panel .save_cont > PushButton {
|
||||
margin: 8dp 0dp 0dp 4dp;
|
||||
padding: 4dp 16dp 4dp 16dp;
|
||||
}
|
||||
.settings_panel .build_types > DropDownList,
|
||||
.settings_panel .output_parser > DropDownList,
|
||||
.settings_panel .span {
|
||||
margin-top: 4dp;
|
||||
}
|
||||
.settings_panel #build_type_list {
|
||||
margin-right: 4dp;
|
||||
}
|
||||
.settings_panel .build_types_cont {
|
||||
row-valign: center;
|
||||
}
|
||||
.settings_panel .inner_box {
|
||||
padding-top: 8dp;
|
||||
visible: false;
|
||||
}
|
||||
.settings_panel .inner_box .build_environment > .subtitle {
|
||||
margin-top: 0dp;
|
||||
}
|
||||
.settings_panel .advanced_options {
|
||||
margin-top: 12dp;
|
||||
border-radius: 4dp;
|
||||
padding: 4dp;
|
||||
background-color: rgba(0,0,0, 0.1);
|
||||
}
|
||||
.settings_panel .advanced_options .title {
|
||||
padding-bottom: 4dp;
|
||||
border-radius: 4dp;
|
||||
background-color: transparent;
|
||||
transition: background-color 100ms;
|
||||
}
|
||||
.settings_panel .advanced_options .title:hover {
|
||||
background-color: var(--primary);
|
||||
}
|
||||
.settings_panel .output_parser .output_parser_rules {
|
||||
background-color: var(--list-back);
|
||||
}
|
||||
.settings_panel .output_parser .output_parser_rules {
|
||||
margin-top: 4dp;
|
||||
}
|
||||
.settings_panel .output_parser .output_parser_rules > TextView {
|
||||
padding-left: 4dp;
|
||||
min-height: 24dp;
|
||||
layout-gravity: center;
|
||||
}
|
||||
.settings_panel .output_parser .output_parser_rules > TextView:first-child {
|
||||
border-width: 1dp;
|
||||
border-right-color: var(--button-border);
|
||||
}
|
||||
.settings_panel .output_parser .output_parser_rules > PushButton {
|
||||
layout-gravity: center;
|
||||
}
|
||||
.settings_panel .details_but {
|
||||
icon: icon(arrow-up-s, 10dp);
|
||||
inner-widget-orientation: widgettextboxicon;
|
||||
}
|
||||
.settings_panel .details_but.contracted {
|
||||
icon: icon(arrow-down-s, 10dp);
|
||||
}
|
||||
.settings_panel > .advanced_options > .title > Image {
|
||||
icon: icon(arrow-down-s, 24dp);
|
||||
}
|
||||
.settings_panel > .advanced_options > .title > Image.expanded {
|
||||
icon: icon(arrow-up-s, 24dp);
|
||||
}
|
||||
.settings_panel > .advanced_options > LinearLayout.inner_box.visible {
|
||||
visible: true;
|
||||
}
|
||||
</style>
|
||||
<MainLayout id="main_layout" lw="mp" lh="mp">
|
||||
<Splitter id="project_splitter" lw="mp" lh="mp">
|
||||
<TabWidget id="panel" tabbar-hide-on-single-tab="true" tabbar-allow-rearrange="true" min-tab-width="32dp" max-tab-width="32dp">
|
||||
<RelativeLayout id="project_view_cont" lw="mp" lh="mp">
|
||||
<TreeView id="project_view" lw="mp" lh="mp" />
|
||||
<vbox id="project_view_empty" lg="top|center_horizontal" lw="mp" lh="wc">
|
||||
<TextView text-align="center" lw="mp" lg="center" text='@string(you-have-not-yet-opened-a-folder, "You have not yet opened a folder.")' word-wrap="true" />
|
||||
<PushButton lw="mp" lg="center" id="open_folder" text='@string(open_folder, "Open Folder")' margin-top="4dp" />
|
||||
<PushButton lw="mp" lg="center" id="open_recent_folder" text='@string(open-recent-folder, "Open Recent Folder...")' margin-top="4dp" />
|
||||
</vbox>
|
||||
</RelativeLayout>
|
||||
<Tab text='@string("project", "Project")' owns="project_view_cont" text-as-fallback="true" icon="icon(folder-open, 12dp)" />
|
||||
</TabWidget>
|
||||
<vbox>
|
||||
<Splitter id="main_splitter" lw="mp" lh="0" lw8="1" orientation="vertical">
|
||||
<RelativeLayout>
|
||||
<vbox id="code_container" lw="mp" lh="mp"></vbox>
|
||||
<hbox id="doc_info" lw="wc" lh="wc" lg="bottom|right" enabled="false">
|
||||
<TextView id="doc_info_text" lw="wc" lh="wc" />
|
||||
</hbox>
|
||||
<RelativeLayout id="image_container" lw="mp" lh="mp" visible="false" enabled="false">
|
||||
<Image lw="mp" lh="mp" scaleType="fit_inside" gravity="center" enabled="false" lg="center" />
|
||||
<TextView id="image_close" lw="wc" lh="wc" text="" lg="top|right" enabled="false" />
|
||||
<Loader id="image_loader" lw="64dp" lh="64dp" outline-thickness="6dp" lg="center" visible="false" />
|
||||
</RelativeLayout>
|
||||
<vbox id="notification_center" lw="256dp" lh="wc"
|
||||
lg="right|bottom" margin-right="22dp" margin-bottom="56dp">
|
||||
</vbox>
|
||||
</RelativeLayout>
|
||||
</Splitter>
|
||||
<TextView id="settings" layout_width="wrap_content" layout_height="wrap_content" text="" layout_gravity="top|right" />
|
||||
</MainLayout>
|
||||
<searchbar id="search_bar" lw="mp" lh="wc">
|
||||
<vbox lw="wc" lh="wc" margin-right="4dp">
|
||||
<TextView lw="wc" lh="18dp" text='@string("find_text", "Find:")' margin-bottom="2dp" />
|
||||
<TextView lw="wc" lh="18dp" text='@string("replace_with_text", "Replace with:")' />
|
||||
</vbox>
|
||||
<vbox lw="0" lw8="1" lh="wc" margin-right="4dp">
|
||||
<TextInput id="search_find" lw="mp" lh="18dp" padding="0" margin-bottom="2dp" />
|
||||
<TextInput id="search_replace" lw="mp" lh="18dp" padding="0" />
|
||||
</vbox>
|
||||
<vbox lw="wc" lh="wc" margin-right="4dp">
|
||||
<CheckBox id="case_sensitive" lw="wc" lh="wc" text='@string(case_sensitive, "Case sensitive")' selected="false" />
|
||||
<CheckBox id="lua_pattern" lw="wc" lh="wc" text='@string(lua_pattern, "Lua Pattern")' selected="false" />
|
||||
</vbox>
|
||||
<vbox lw="wc" lh="wc" margin-right="4dp">
|
||||
<CheckBox id="whole_word" lw="wc" lh="wc" text='@string(match_whole_word, "Match Whole Word")' selected="false" />
|
||||
<CheckBox id="escape_sequence" lw="wc" lh="wc" text='@string(use_escape_sequences, "Use escape sequences")' selected="false" tooltip='@string(escape_sequence_tooltip, "Replace \\, \t, \n, \r and \uXXXX (Unicode characters) with the corresponding control")' />
|
||||
</vbox>
|
||||
<vbox lw="wc" lh="wc">
|
||||
<hbox lw="wc" lh="wc" margin-bottom="2dp">
|
||||
<PushButton id="find_prev" lw="wc" lh="18dp" text='@string(previous, "Previous")' margin-right="4dp" />
|
||||
<PushButton id="find_next" lw="wc" lh="18dp" text='@string(next, "Next")' margin-right="4dp" />"
|
||||
<PushButton id="select_all" lw="wc" lh="18dp" text='@string(select_all, "Select All")' />
|
||||
<RelativeLayout lw="0" lw8="1" lh="18dp">
|
||||
<Widget id="searchbar_close" class="close_button" lw="wc" lh="wc" lg="center_vertical|right" margin-right="2dp" />
|
||||
</RelativeLayout>
|
||||
</hbox>
|
||||
<hbox lw="wc" lh="wc">
|
||||
<PushButton id="replace" lw="wc" lh="18dp" text='@string(replace, "Replace")' margin-right="4dp" />
|
||||
<PushButton id="replace_find" lw="wc" lh="18dp" text='@string(replace_and_find, "Replace & Find")' margin-right="4dp" />
|
||||
<PushButton id="replace_all" lw="wc" lh="18dp" text='@string(replace_all, "Replace All")' />
|
||||
</hbox>
|
||||
</vbox>
|
||||
</searchbar>
|
||||
<locatebar id="locate_bar" lw="mp" lh="wc" visible="false">
|
||||
<TextInput id="locate_find" lw="0" lw8="1" lh="18dp" padding="0" margin-bottom="2dp" margin-right="4dp" hint='@string(type_to_locate, "Type to Locate")' />
|
||||
<Widget id="locatebar_close" class="close_button" lw="wc" lh="wc" lg="center_vertical|right"/>
|
||||
</locatebar>
|
||||
<globalsearchbar id="global_search_bar" lw="mp" lh="wc">
|
||||
<hbox lw="mp" lh="wc">
|
||||
<TextView lw="wc" lh="wc" text='@string(search_for, "Search for:")' margin-right="4dp" />
|
||||
<vbox lw="0" lw8="1" lh="wc">
|
||||
<TextInput id="global_search_find" lw="mp" lh="wc" lh="18dp" padding="0" margin-bottom="2dp" />
|
||||
<hbox lw="mp" lh="wc" margin-bottom="4dp">
|
||||
<CheckBox id="case_sensitive" lw="wc" lh="wc" text='@string(case_sensitive, "Case sensitive")' selected="true" />
|
||||
<CheckBox id="whole_word" lw="wc" lh="wc" text='@string(match_whole_word, "Match Whole Word")' selected="false" margin-left="8dp" />
|
||||
<CheckBox id="lua_pattern" lw="wc" lh="wc" text='@string(lua_pattern, "Lua Pattern")' selected="false" margin-left="8dp" />
|
||||
<CheckBox id="escape_sequence" lw="wc" lh="wc" text='@string(use_escape_sequences, "Use escape sequences")' margin-left="8dp" selected="false" tooltip='@string(escape_sequence_tooltip, "Replace \\, \t, \n, \r and \uXXXX (Unicode characters) with the corresponding control")' />
|
||||
</hbox>
|
||||
<hbox lw="mp" lh="wc">
|
||||
<TextView lw="wc" lh="wc" text='@string(history, "History:")' margin-right="4dp" lh="18dp" />
|
||||
<DropDownList id="global_search_history" lw="0" lh="18dp" lw8="1" margin-right="4dp" />
|
||||
<PushButton id="global_search_clear_history" lw="wc" lh="18dp" text='@string(clear_history, "Clear History")' margin-right="4dp" />
|
||||
<PushButton id="global_search" lw="wc" lh="18dp" text='@string(search, "Search")' margin-right="4dp" />
|
||||
<PushButton id="global_search_replace" lw="wc" lh="18dp" text='@string(search_and_replace, "Search & Replace")' />
|
||||
</hbox>
|
||||
</vbox>
|
||||
<Widget id="global_searchbar_close" class="close_button" lw="wc" lh="wc" lg="top|right" margin-left="4dp" margin-top="4dp" />
|
||||
</hbox>
|
||||
</globalsearchbar>
|
||||
<statusbar lw="mp" lh="wc" id="status_bar">
|
||||
<TextView class="status_but" id="status_locate_bar" text="1 Locate" />
|
||||
<TextView class="status_but" id="status_global_search_bar" text="2 Search" />
|
||||
<TextView class="status_but" id="status_build_output" text="3 Build Output" />
|
||||
<TextView class="status_but" id="status_terminal" text="4 Terminal" />
|
||||
<View lw="0" lw8="1" lh="mp" />
|
||||
</statusbar>
|
||||
</vbox>
|
||||
</Splitter>
|
||||
<TextView id="settings" lw="wc" lh="wc" text="" lg="top|right" />
|
||||
</MainLayout>
|
||||
)html";
|
||||
|
||||
UIIconTheme* iconTheme = UIIconTheme::New( "ecode" );
|
||||
|
||||
Reference in New Issue
Block a user