19 ::comms::Icon::from(
"tabler:ruler"),
20 ::comms::Colors::mui::teal[400])
29 ::comms::Icons::mdi::weight,
30 ::comms::Colors::mui::blue_grey[400])
39 ::comms::Icon::from(
"ph:clock"),
40 ::comms::Colors::mui::blue[400])
49 ::comms::Icon::from(
"material-symbols:electric-bolt-rounded"),
50 ::comms::Colors::mui::amber[600])
59 ::comms::Icon::from(
"ph:thermometer-light"),
60 ::comms::Colors::mui::orange[300])
67 "amount_of_substance",
69 ::comms::Icons::mdi::beaker_outline,
70 ::comms::Colors::mui::blue_grey[400])
79 ::comms::Icons::mdi::lightbulb_outline,
80 ::comms::Colors::mui::yellow[400])
93 ::comms::Icons::mdi::timer,
94 ::comms::Colors::mui::blue[300])
102 ::comms::Icons::mdi::clock_time_three_outline,
103 ::comms::Colors::mui::blue[500])
111 ::comms::Icons::mdi::calendar,
112 ::comms::Colors::mui::blue[600])
125 ::comms::Icons::mdi::thermometer_lines,
126 ::comms::Colors::mui::orange[400],
127 static constexpr double offset = 273.15;
128 static constexpr int default_precision = 1;)
136 ::comms::Icons::mdi::thermometer,
137 ::comms::Colors::mui::orange[500],
138 static constexpr double offset = 273.15 - 32.0 * 5.0 / 9.0;
139 static constexpr int default_precision = 1;)
152 ::comms::Icons::mdi::angle_obtuse,
153 ::comms::Colors::mui::deep_purple[400])
162 ::comms::Icons::mdi::circle_outline,
163 ::comms::Colors::mui::deep_purple[300])
172 ::comms::Icon::from(
"ph:wave-sine"),
173 ::comms::Colors::mui::light_blue[400])
182 ::comms::Icons::mdi::arrow_right_bold,
183 ::comms::Colors::mui::blue_grey[500])
192 ::comms::Icon::from(
"ph:gauge"),
193 ::comms::Colors::mui::blue_grey[400])
202 ::comms::Icons::mdi::flash,
203 ::comms::Colors::mui::deep_orange[500])
212 ::comms::Icons::mdi::lightning_bolt,
213 ::comms::Colors::mui::deep_orange[400])
222 ::comms::Icons::mdi::transmission_tower,
223 ::comms::Colors::mui::amber[700])
232 ::comms::Icon::from(
"material-symbols:electric-bolt-rounded"),
233 ::comms::Colors::mui::amber[500])
242 ::comms::Icon::from(
"mdi:capacitor"),
243 ::comms::Colors::mui::brown[300])
252 ::comms::Icons::mdi::resistor,
253 ::comms::Colors::mui::brown[400])
262 ::comms::Icons::mdi::resistor_nodes,
263 ::comms::Colors::mui::brown[500])
272 ::comms::Icon::from(
"ph:magnet"),
273 ::comms::Colors::mui::indigo[400])
280 "magnetic_flux_density",
282 ::comms::Icon::from(
"ph:magnet"),
283 ::comms::Colors::mui::indigo[500])
292 ::comms::Icon::from(
"mdi:coil"),
293 ::comms::Colors::mui::brown[600])
302 ::comms::Icons::mdi::lightbulb_outline,
303 ::comms::Colors::mui::yellow[500])
312 ::comms::Icons::mdi::brightness_6,
313 ::comms::Colors::mui::yellow[600])
322 ::comms::Icons::mdi::radioactive_circle_outline,
323 ::comms::Colors::mui::pink[400])
332 ::comms::Icons::mdi::radioactive_circle_outline,
333 ::comms::Colors::mui::pink[500])
342 ::comms::Icons::mdi::radioactive_circle_outline,
343 ::comms::Colors::mui::pink[600])
350 "catalytic_activity",
352 ::comms::Icons::mdi::beaker_outline,
353 ::comms::Colors::mui::pink[300])
366 ::comms::Icons::mdi::water_outline,
367 ::comms::Colors::mui::blue_grey[300])
376 ::comms::Icons::mdi::cube_outline,
377 ::comms::Colors::mui::blue_grey[400])
386 ::comms::Icons::mdi::weight,
387 ::comms::Colors::mui::blue_grey[500])
400 ::comms::Icon::from(
"ph:gauge"),
401 ::comms::Colors::mui::blue_grey[500],
402 static constexpr int default_precision = 2;)
408 "standard atmosphere",
411 ::comms::Icon::from(
"ph:gauge"),
412 ::comms::Colors::mui::blue_grey[600],
413 static constexpr int default_precision = 3;)
422 ::comms::Icons::mdi::battery_high,
423 ::comms::Colors::mui::deep_orange[700],
424 static constexpr int default_precision = 2;)
435 "magnetic_flux_density",
437 ::comms::Icon::from(
"ph:magnet"),
438 ::comms::Colors::mui::indigo[400])
450 0.017453292519943295,
451 ::comms::Icons::mdi::angle_obtuse,
452 ::comms::Colors::mui::deep_purple[400],
453 static constexpr ::std::string_view formatter =
"degree";
454 static constexpr int default_precision = 2;
455 static constexpr bool no_space_before_symbol =
true;)
464 2.908882086657216e-4,
465 ::comms::Icons::mdi::angle_acute,
466 ::comms::Colors::mui::deep_purple[300],
467 static constexpr int default_precision = 2;
468 static constexpr bool no_space_before_symbol =
true;)
478 ::comms::Icons::mdi::angle_acute,
479 ::comms::Colors::mui::deep_purple[200],
480 static constexpr int default_precision = 3;
481 static constexpr bool no_space_before_symbol =
true;)
Macros that expand into a CRTP unit/measure struct and a runtime auto-registration for it.
#define DIMVAL_DEFINE_UNIT(Tag, Id, Symbol, ShortName, LongName, Kind, Factor, Icon, Color,...)
Define a unit struct in ::dimval and auto-register its descriptor at static-init time.
Definition define.hpp:72