1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-06-17 07:40:47 +03:00

Better buttons

This commit is contained in:
Graham Nelson 2023-04-15 22:24:34 +01:00
parent 762133ecd2
commit e71e4da40c
8 changed files with 122 additions and 21 deletions

View file

@ -430,8 +430,8 @@ other options to the selection defined here.
<span class="plain-syntax"> </span><span class="identifier-syntax">L</span><span class="string-syntax">"completely rebuild target(s)"</span><span class="plain-syntax">);</span>
<span class="plain-syntax"> </span><a href="../../../inweb/foundation-module/3-cla.html#SP5" class="function-link"><span class="function-syntax">CommandLine::declare_switch</span></a><span class="plain-syntax">(</span><span class="constant-syntax">INSPECT_CLSW</span><span class="plain-syntax">, </span><span class="identifier-syntax">L</span><span class="string-syntax">"inspect"</span><span class="plain-syntax">, </span><span class="constant-syntax">1</span><span class="plain-syntax">,</span>
<span class="plain-syntax"> </span><span class="identifier-syntax">L</span><span class="string-syntax">"show target(s) but take no action"</span><span class="plain-syntax">);</span>
<span class="plain-syntax"> </span><a href="../../../inweb/foundation-module/3-cla.html#SP5" class="function-link"><span class="function-syntax">CommandLine::declare_switch</span></a><span class="plain-syntax">(</span><span class="constant-syntax">INSTALL_CLSW</span><span class="plain-syntax">, </span><span class="identifier-syntax">L</span><span class="string-syntax">"report-on"</span><span class="plain-syntax">, </span><span class="constant-syntax">1</span><span class="plain-syntax">,</span>
<span class="plain-syntax"> </span><span class="identifier-syntax">L</span><span class="string-syntax">"report on target(s) within the Inform GUI apps"</span><span class="plain-syntax">);</span>
<span class="plain-syntax"> </span><a href="../../../inweb/foundation-module/3-cla.html#SP5" class="function-link"><span class="function-syntax">CommandLine::declare_switch</span></a><span class="plain-syntax">(</span><span class="constant-syntax">INSTALL_CLSW</span><span class="plain-syntax">, </span><span class="identifier-syntax">L</span><span class="string-syntax">"install"</span><span class="plain-syntax">, </span><span class="constant-syntax">1</span><span class="plain-syntax">,</span>
<span class="plain-syntax"> </span><span class="identifier-syntax">L</span><span class="string-syntax">"install extension within the Inform GUI apps"</span><span class="plain-syntax">);</span>
<span class="plain-syntax"> </span><a href="../../../inweb/foundation-module/3-cla.html#SP5" class="function-link"><span class="function-syntax">CommandLine::declare_switch</span></a><span class="plain-syntax">(</span><span class="constant-syntax">GRAPH_CLSW</span><span class="plain-syntax">, </span><span class="identifier-syntax">L</span><span class="string-syntax">"graph"</span><span class="plain-syntax">, </span><span class="constant-syntax">1</span><span class="plain-syntax">,</span>
<span class="plain-syntax"> </span><span class="identifier-syntax">L</span><span class="string-syntax">"show dependency graph of target(s) but take no action"</span><span class="plain-syntax">);</span>
<span class="plain-syntax"> </span><a href="../../../inweb/foundation-module/3-cla.html#SP5" class="function-link"><span class="function-syntax">CommandLine::declare_switch</span></a><span class="plain-syntax">(</span><span class="constant-syntax">USE_NEEDS_CLSW</span><span class="plain-syntax">, </span><span class="identifier-syntax">L</span><span class="string-syntax">"use-needs"</span><span class="plain-syntax">, </span><span class="constant-syntax">1</span><span class="plain-syntax">,</span>

View file

@ -75,13 +75,13 @@ and those not documented in this manual are covered in that one.
<span class="plain-syntax">-dry make this a dry run (print but do not execute shell commands) (default is -no-dry)</span>
<span class="plain-syntax">-graph show dependency graph of target(s) but take no action</span>
<span class="plain-syntax">-inspect show target(s) but take no action</span>
<span class="plain-syntax">-install install extension within the Inform GUI apps</span>
<span class="plain-syntax">-matching X apply to all works in nest(s) matching requirement X</span>
<span class="plain-syntax">-preprocess-app X use CSS suitable for app platform X (macos, windows, linux)</span>
<span class="plain-syntax">-preprocess-html X construct HTML page based on X</span>
<span class="plain-syntax">-preprocess-html-to X set destination for -preprocess-html to be X</span>
<span class="plain-syntax">-rebuild completely rebuild target(s)</span>
<span class="plain-syntax">-no-repair don't quietly fix missing or incorrect extension metadata (default is -repair)</span>
<span class="plain-syntax">-report-on report on target(s) within the Inform GUI apps</span>
<span class="plain-syntax">-results X write HTML report file to X (for use within Inform GUI apps)</span>
<span class="plain-syntax">-sync-to X forcibly copy target(s) to nest X, even if prior version already there</span>
<span class="plain-syntax">-tools X make X the directory of intools executables, and exit developer mode</span>

View file

@ -343,8 +343,8 @@ other options to the selection defined here.
L"completely rebuild target(s)");
CommandLine::declare_switch(INSPECT_CLSW, L"inspect", 1,
L"show target(s) but take no action");
CommandLine::declare_switch(INSTALL_CLSW, L"report-on", 1,
L"report on target(s) within the Inform GUI apps");
CommandLine::declare_switch(INSTALL_CLSW, L"install", 1,
L"install extension within the Inform GUI apps");
CommandLine::declare_switch(GRAPH_CLSW, L"graph", 1,
L"show dependency graph of target(s) but take no action");
CommandLine::declare_switch(USE_NEEDS_CLSW, L"use-needs", 1,

View file

@ -16,13 +16,13 @@ usage: inbuild [-TASK] TARGET1 TARGET2 ...
-dry make this a dry run (print but do not execute shell commands) (default is -no-dry)
-graph show dependency graph of target(s) but take no action
-inspect show target(s) but take no action
-install install extension within the Inform GUI apps
-matching X apply to all works in nest(s) matching requirement X
-preprocess-app X use CSS suitable for app platform X (macos, windows, linux)
-preprocess-html X construct HTML page based on X
-preprocess-html-to X set destination for -preprocess-html to be X
-rebuild completely rebuild target(s)
-no-repair don't quietly fix missing or incorrect extension metadata (default is -repair)
-report-on report on target(s) within the Inform GUI apps
-results X write HTML report file to X (for use within Inform GUI apps)
-sync-to X forcibly copy target(s) to nest X, even if prior version already there
-tools X make X the directory of intools executables, and exit developer mode

View file

@ -1,33 +1,34 @@
100.0% in inform7 run
70.4% in compilation to Inter
49.3% in //Sequence::undertake_queued_tasks//
4.9% in //MajorNodes::pre_pass//
71.0% in compilation to Inter
49.8% in //Sequence::undertake_queued_tasks//
4.7% in //MajorNodes::pre_pass//
3.3% in //MajorNodes::pass_1//
2.1% in //RTPhrasebook::compile_entries//
1.7% in //ImperativeDefinitions::assess_all//
1.3% in //RTKindConstructors::compile//
0.9% in //Sequence::lint_inter//
2.0% in //ImperativeDefinitions::assess_all//
2.0% in //RTPhrasebook::compile_entries//
1.4% in //RTKindConstructors::compile//
1.1% in //Sequence::lint_inter//
0.5% in //MajorNodes::pass_2//
0.5% in //Sequence::undertake_queued_tasks//
0.5% in //Sequence::undertake_queued_tasks//
0.5% in //World::stage_V//
0.3% in //ImperativeDefinitions::compile_first_block//
0.3% in //Sequence::undertake_queued_tasks//
0.1% in //Closures::compile_closures//
0.1% in //CompletionModule::compile//
0.1% in //InferenceSubjects::emit_all//
0.1% in //RTKindConstructors::compile_permissions//
0.1% in //Task::make_built_in_kind_constructors//
0.1% in //World::stages_II_and_III//
2.9% not specifically accounted for
25.9% in running Inter pipeline
9.9% in step 14/15: generate inform6 -> auto.inf
2.8% not specifically accounted for
25.4% in running Inter pipeline
9.7% in step 14/15: generate inform6 -> auto.inf
5.7% in step 5/15: load-binary-kits
5.3% in step 6/15: make-synoptic-module
1.7% in step 9/15: make-identifiers-unique
5.1% in step 6/15: make-synoptic-module
1.6% in step 9/15: make-identifiers-unique
0.3% in step 12/15: eliminate-redundant-operations
0.3% in step 4/15: compile-splats
0.3% in step 7/15: shorten-wiring
0.3% in step 8/15: detect-indirect-calls
0.1% in step 11/15: eliminate-redundant-labels
0.1% in step 8/15: detect-indirect-calls
1.6% not specifically accounted for
1.5% not specifically accounted for
3.1% in supervisor
0.4% not specifically accounted for

View file

@ -21,6 +21,10 @@
--index-activity-contents-background-colour: #e8e0c0;
--registry-contents-link-colour: #202020;
--extension-index-entry-colour: #404040;
--safe-button-background-colour: rgb(31, 136, 61);
--dangerous-button-background-colour: rgb(136, 31, 61);
--button-text-background-colour: #ffffff;
}
@media (prefers-color-scheme: dark) {
@ -46,6 +50,10 @@
--index-activity-contents-background-colour: #727060;
--registry-contents-link-colour: #ffffff;
--extension-index-entry-colour: #c0c0c0;
--safe-button-background-colour: rgb(31, 136, 61);
--dangerous-button-background-colour: rgb(136, 31, 61);
--button-text-background-colour: #ffffff;
}
}
@ -480,3 +488,31 @@ a.registrycontentslink:active {
text-decoration: none;
color: #D00000;
}
/* Buttons for use on inbuild results pages */
button.safebutton {
background-color: var(--safe-button-background-colour);
border: none;
color: var(--button-text-background-colour);
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
button.dangerousbutton {
background-color: var(--dangerous-button-background-colour);
border: none;
color: var(--button-text-background-colour);
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}

View file

@ -423,3 +423,31 @@ a.registrycontentslink:active {
text-decoration: none;
color: #D00000;
}
/* Buttons for use on inbuild results pages */
button.safebutton {
background-color: #00ff00;
border: none;
color: #ffffff;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
button.dangerousbutton {
background-color: #ff0000;
border: none;
color: #ffffff;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}

View file

@ -21,6 +21,10 @@
--index-activity-contents-background-colour: #e8e0c0;
--registry-contents-link-colour: #202020;
--extension-index-entry-colour: #404040;
--safe-button-background-colour: rgb(31, 136, 61);
--dangerous-button-background-colour: rgb(136, 31, 61);
--button-text-background-colour: #ffffff;
}
@media (prefers-color-scheme: dark) {
@ -46,6 +50,10 @@
--index-activity-contents-background-colour: #727060;
--registry-contents-link-colour: #ffffff;
--extension-index-entry-colour: #c0c0c0;
--safe-button-background-colour: rgb(31, 136, 61);
--dangerous-button-background-colour: rgb(136, 31, 61);
--button-text-background-colour: #ffffff;
}
}
@ -480,3 +488,31 @@ a.registrycontentslink:active {
text-decoration: none;
color: #D00000;
}
/* Buttons for use on inbuild results pages */
button.safebutton {
background-color: var(--safe-button-background-colour);
border: none;
color: var(--button-text-background-colour);
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
button.dangerousbutton {
background-color: var(--dangerous-button-background-colour);
border: none;
color: var(--button-text-background-colour);
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}