Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic theme support and switch config to hex colors. #17

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 43 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,16 @@ <h2>Modules</h2>
<li><a href="modules/cairo_helpers.html">cairo_helpers</a></li>
<li><a href="modules/data.html">data</a></li>
<li><a href="modules/polycore.html">polycore</a></li>
<li><a href="modules/polycore_theme.html">polycore_theme</a></li>
<li><a href="modules/util.html">util</a></li>
<li><a href="modules/widget.html">widget</a></li>
<li><a href="modules/widget_core.html">widget_core</a></li>
<li><a href="modules/widget_cpu.html">widget_cpu</a></li>
<li><a href="modules/widget_drive.html">widget_drive</a></li>
<li><a href="modules/widget_gpu.html">widget_gpu</a></li>
<li><a href="modules/widget_graph.html">widget_graph</a></li>
<li><a href="modules/widget_memory.html">widget_memory</a></li>
<li><a href="modules/widget_network.html">widget_network</a></li>
<li><a href="modules/widget_text.html">widget_text</a></li>
</ul>

</div>
Expand All @@ -59,12 +67,44 @@ <h2>Modules</h2>
<td class="name" nowrap><a href="modules/polycore.html">polycore</a></td>
<td class="summary">polycore main module</td>
</tr>
<tr>
<td class="name" nowrap><a href="modules/polycore_theme.html">polycore_theme</a></td>
<td class="summary">A collection of Widget classes</td>
</tr>
<tr>
<td class="name" nowrap><a href="modules/util.html">util</a></td>
<td class="summary">Various helper functions</td>
</tr>
<tr>
<td class="name" nowrap><a href="modules/widget.html">widget</a></td>
<td class="name" nowrap><a href="modules/widget_core.html">widget_core</a></td>
<td class="summary">A collection of Widget classes</td>
</tr>
<tr>
<td class="name" nowrap><a href="modules/widget_cpu.html">widget_cpu</a></td>
<td class="summary">A collection of CPU Widget classes</td>
</tr>
<tr>
<td class="name" nowrap><a href="modules/widget_drive.html">widget_drive</a></td>
<td class="summary">A collection of Disk Drive Widget classes</td>
</tr>
<tr>
<td class="name" nowrap><a href="modules/widget_gpu.html">widget_gpu</a></td>
<td class="summary">A collection of GPU Widget classes</td>
</tr>
<tr>
<td class="name" nowrap><a href="modules/widget_graph.html">widget_graph</a></td>
<td class="summary">A collection of Basic Graph and indicator Widget classes</td>
</tr>
<tr>
<td class="name" nowrap><a href="modules/widget_memory.html">widget_memory</a></td>
<td class="summary">A collection of Widget classes</td>
</tr>
<tr>
<td class="name" nowrap><a href="modules/widget_network.html">widget_network</a></td>
<td class="summary">A collection of Network Widget classes</td>
</tr>
<tr>
<td class="name" nowrap><a href="modules/widget_text.html">widget_text</a></td>
<td class="summary">A collection of Widget classes</td>
</tr>
</table>
Expand All @@ -73,7 +113,7 @@ <h2>Modules</h2>
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2023-03-26 23:57:51 </i>
<i style="float:right;">Last updated 2023-05-06 20:25:17 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
47 changes: 45 additions & 2 deletions docs/modules/cairo_helpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,16 @@ <h2>Modules</h2>
<li><strong>cairo_helpers</strong></li>
<li><a href="../modules/data.html">data</a></li>
<li><a href="../modules/polycore.html">polycore</a></li>
<li><a href="../modules/polycore_theme.html">polycore_theme</a></li>
<li><a href="../modules/util.html">util</a></li>
<li><a href="../modules/widget.html">widget</a></li>
<li><a href="../modules/widget_core.html">widget_core</a></li>
<li><a href="../modules/widget_cpu.html">widget_cpu</a></li>
<li><a href="../modules/widget_drive.html">widget_drive</a></li>
<li><a href="../modules/widget_gpu.html">widget_gpu</a></li>
<li><a href="../modules/widget_graph.html">widget_graph</a></li>
<li><a href="../modules/widget_memory.html">widget_memory</a></li>
<li><a href="../modules/widget_network.html">widget_network</a></li>
<li><a href="../modules/widget_text.html">widget_text</a></li>
</ul>

</div>
Expand Down Expand Up @@ -103,6 +111,10 @@ <h2><a href="#Functions">Functions</a></h2>
<td class="name" nowrap><a href="#write_middle">write_middle(cr, mx, my, text)</a></td>
<td class="summary">Write text centered horizontally and vertically on the given point mx, my.</td>
</tr>
<tr>
<td class="name" nowrap><a href="#convert_string_to_rgba">convert_string_to_rgba(str)</a></td>
<td class="summary">Converts a string color representation to numbers for cairo.</td>
</tr>
</table>
<h2><a href="#Local_Functions">Local Functions</a></h2>
<table class="function_list">
Expand Down Expand Up @@ -570,6 +582,37 @@ <h3>Parameters:</h3>



</dd>
<dt>
<a name = "convert_string_to_rgba"></a>
<strong>convert_string_to_rgba(str)</strong>
</dt>
<dd>
Converts a string color representation to numbers for cairo.
Supports 3 and 6 character hex representations without an alpha value
and 4 and 8 character hex representations with an alpha value.
Strings may start with or without a # character.
Returns r,g,b,a as doubles with values ranging from 0.0-1.0


<h3>Parameters:</h3>
<ul>
<li><span class="parameter">str</span>
<span class="types"><span class="type">string</span></span>
hex number to convert
</li>
</ul>

<h3>Returns:</h3>
<ol>

<span class="types"><span class="type">r,g,b,a</span></span>

</ol>




</dd>
</dl>
<h2 class="section-header "><a name="Local_Functions"></a>Local Functions</h2>
Expand Down Expand Up @@ -646,7 +689,7 @@ <h3>Parameters:</h3>
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2023-03-26 23:57:51 </i>
<i style="float:right;">Last updated 2023-05-06 20:25:17 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
12 changes: 10 additions & 2 deletions docs/modules/data.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,16 @@ <h2>Modules</h2>
<li><a href="../modules/cairo_helpers.html">cairo_helpers</a></li>
<li><strong>data</strong></li>
<li><a href="../modules/polycore.html">polycore</a></li>
<li><a href="../modules/polycore_theme.html">polycore_theme</a></li>
<li><a href="../modules/util.html">util</a></li>
<li><a href="../modules/widget.html">widget</a></li>
<li><a href="../modules/widget_core.html">widget_core</a></li>
<li><a href="../modules/widget_cpu.html">widget_cpu</a></li>
<li><a href="../modules/widget_drive.html">widget_drive</a></li>
<li><a href="../modules/widget_gpu.html">widget_gpu</a></li>
<li><a href="../modules/widget_graph.html">widget_graph</a></li>
<li><a href="../modules/widget_memory.html">widget_memory</a></li>
<li><a href="../modules/widget_network.html">widget_network</a></li>
<li><a href="../modules/widget_text.html">widget_text</a></li>
</ul>

</div>
Expand Down Expand Up @@ -742,7 +750,7 @@ <h3>Parameters:</h3>
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2023-03-26 23:57:51 </i>
<i style="float:right;">Last updated 2023-05-06 20:25:17 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
12 changes: 10 additions & 2 deletions docs/modules/polycore.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,16 @@ <h2>Modules</h2>
<li><a href="../modules/cairo_helpers.html">cairo_helpers</a></li>
<li><a href="../modules/data.html">data</a></li>
<li><strong>polycore</strong></li>
<li><a href="../modules/polycore_theme.html">polycore_theme</a></li>
<li><a href="../modules/util.html">util</a></li>
<li><a href="../modules/widget.html">widget</a></li>
<li><a href="../modules/widget_core.html">widget_core</a></li>
<li><a href="../modules/widget_cpu.html">widget_cpu</a></li>
<li><a href="../modules/widget_drive.html">widget_drive</a></li>
<li><a href="../modules/widget_gpu.html">widget_gpu</a></li>
<li><a href="../modules/widget_graph.html">widget_graph</a></li>
<li><a href="../modules/widget_memory.html">widget_memory</a></li>
<li><a href="../modules/widget_network.html">widget_network</a></li>
<li><a href="../modules/widget_text.html">widget_text</a></li>
</ul>

</div>
Expand Down Expand Up @@ -245,7 +253,7 @@ <h3>Parameters:</h3>
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2023-03-26 23:57:51 </i>
<i style="float:right;">Last updated 2023-05-06 20:25:17 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
Loading