diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 000000000..ece0deac5 Binary files /dev/null and b/.DS_Store differ diff --git a/res/.DS_Store b/res/.DS_Store new file mode 100644 index 000000000..a3d2eccfc Binary files /dev/null and b/res/.DS_Store differ diff --git a/res/fonts/.DS_Store b/res/fonts/.DS_Store new file mode 100644 index 000000000..d18d8c6cc Binary files /dev/null and b/res/fonts/.DS_Store differ diff --git a/res/fonts/Source_Code_Pro/.DS_Store b/res/fonts/Source_Code_Pro/.DS_Store new file mode 100644 index 000000000..093b0ade6 Binary files /dev/null and b/res/fonts/Source_Code_Pro/.DS_Store differ diff --git a/res/fonts/Source_Code_Pro/OFL.txt b/res/fonts/Source_Code_Pro/OFL.txt new file mode 100644 index 000000000..54da4a42b --- /dev/null +++ b/res/fonts/Source_Code_Pro/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://openfontlicense.org + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/res/fonts/Source_Code_Pro/README.txt b/res/fonts/Source_Code_Pro/README.txt new file mode 100644 index 000000000..2e57b72e5 --- /dev/null +++ b/res/fonts/Source_Code_Pro/README.txt @@ -0,0 +1,79 @@ +Source Code Pro Variable Font +============================= + +This download contains Source Code Pro as both variable fonts and static fonts. + +Source Code Pro is a variable font with this axis: + wght + +This means all the styles are contained in these files: + SourceCodePro-VariableFont_wght.ttf + SourceCodePro-Italic-VariableFont_wght.ttf + +If your app fully supports variable fonts, you can now pick intermediate styles +that aren’t available as static fonts. Not all apps support variable fonts, and +in those cases you can use the static font files for Source Code Pro: + static/SourceCodePro-ExtraLight.ttf + static/SourceCodePro-Light.ttf + static/SourceCodePro-Regular.ttf + static/SourceCodePro-Medium.ttf + static/SourceCodePro-SemiBold.ttf + static/SourceCodePro-Bold.ttf + static/SourceCodePro-ExtraBold.ttf + static/SourceCodePro-Black.ttf + static/SourceCodePro-ExtraLightItalic.ttf + static/SourceCodePro-LightItalic.ttf + static/SourceCodePro-Italic.ttf + static/SourceCodePro-MediumItalic.ttf + static/SourceCodePro-SemiBoldItalic.ttf + static/SourceCodePro-BoldItalic.ttf + static/SourceCodePro-ExtraBoldItalic.ttf + static/SourceCodePro-BlackItalic.ttf + +Get started +----------- + +1. Install the font files you want to use + +2. Use your app's font picker to view the font family and all the +available styles + +Learn more about variable fonts +------------------------------- + + https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts + https://variablefonts.typenetwork.com + https://medium.com/variable-fonts + +In desktop apps + + https://theblog.adobe.com/can-variable-fonts-illustrator-cc + https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts + +Online + + https://developers.google.com/fonts/docs/getting_started + https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide + https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts + +Installing fonts + + MacOS: https://support.apple.com/en-us/HT201749 + Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux + Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows + +Android Apps + + https://developers.google.com/fonts/docs/android + https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts + +License +------- +Please read the full license text (OFL.txt) to understand the permissions, +restrictions and requirements for usage, redistribution, and modification. + +You can use them in your products & projects – print or digital, +commercial or otherwise. + +This isn't legal advice, please consider consulting a lawyer and see the full +license for all details. diff --git a/res/fonts/Source_Code_Pro/static/.DS_Store b/res/fonts/Source_Code_Pro/static/.DS_Store new file mode 100644 index 000000000..038dccc9d Binary files /dev/null and b/res/fonts/Source_Code_Pro/static/.DS_Store differ diff --git a/res/fonts/Source_Code_Pro/static/SourceCodePro-Regular.ttf b/res/fonts/Source_Code_Pro/static/SourceCodePro-Regular.ttf new file mode 100644 index 000000000..b1fa336cd Binary files /dev/null and b/res/fonts/Source_Code_Pro/static/SourceCodePro-Regular.ttf differ diff --git a/res/themes/.DS_Store b/res/themes/.DS_Store new file mode 100644 index 000000000..e6785e605 Binary files /dev/null and b/res/themes/.DS_Store differ diff --git a/res/themes/tinybox/.DS_Store b/res/themes/tinybox/.DS_Store new file mode 100644 index 000000000..dc9986767 Binary files /dev/null and b/res/themes/tinybox/.DS_Store differ diff --git a/res/themes/tinybox/background.png b/res/themes/tinybox/background.png new file mode 100644 index 000000000..fd92485b5 Binary files /dev/null and b/res/themes/tinybox/background.png differ diff --git a/res/themes/tinybox/preview.png b/res/themes/tinybox/preview.png new file mode 100644 index 000000000..3b25b9254 Binary files /dev/null and b/res/themes/tinybox/preview.png differ diff --git a/res/themes/tinybox/theme.yaml b/res/themes/tinybox/theme.yaml new file mode 100644 index 000000000..7cb0f91cc --- /dev/null +++ b/res/themes/tinybox/theme.yaml @@ -0,0 +1,327 @@ +--- +define_font: &font Source_Code_Pro/static/SourceCodePro-Regular.ttf +define_color: &black "0, 0, 0" +define_background: &background background.png +define_ip: &ipaddress 192.186.0.1 +define_linecolor: &linecolor 100, 100, 100 +define_smallfont: &smallfont 14 +define_midfont: &midfont 20 +define_bigfont: &bigfont 28 + +author: "@philipkopylov" + +display: + DISPLAY_SIZE: 5" + DISPLAY_ORIENTATION: landscape + DISPLAY_RGB_LED: 255, 255, 255 + +static_images: + BACKGROUND: + PATH: background.png + X: 0 + Y: 0 + WIDTH: 800 + HEIGHT: 480 + +static_text: + CPU_MODEL: + TEXT: EPIC 7532 · + X: 10 + Y: 10 + FONT_SIZE: *smallfont + BACKGROUND_IMAGE: *background + CPU_PERCENT: + TEXT: "%" + X: 45 + Y: 40 + FONT: *font + FONT_SIZE: *midfont + BACKGROUND_IMAGE: *background + MEMORY_PERCENT: + TEXT: "%" + X: 45 + Y: 184 + FONT: *font + FONT_SIZE: *midfont + BACKGROUND_IMAGE: *background + MEMORY_SEPARATOR: + TEXT: / + X: 65 + Y: 185 + FONT: *font + FONT_SIZE: *smallfont + BACKGROUND_IMAGE: *background + + MEMORY: + TEXT: MEMORY + X: 10 + Y: 156 + FONT: *font + FONT_SIZE: *smallfont + FONT_COLOR: *black + BACKGROUND_IMAGE: *background + MEMORY_TOTAL: + TEXT: "30517" + X: 82 + Y: 180 + FONT: *font + FONT_SIZE: *bigfont + FONT_COLOR: *black + BACKGROUND_IMAGE: *background + + DISK: + TEXT: DISK + X: 10 + Y: 293 + FONT: *font + FONT_SIZE: *smallfont + FONT_COLOR: *black + BACKGROUND_IMAGE: *background + DISK_PERCENT: + TEXT: "%" + X: 45 + Y: 320 + FONT: *font + FONT_SIZE: *midfont + BACKGROUND_IMAGE: *background + IP: + TEXT: IP + X: 10 + Y: 422 + FONT: *font + FONT_SIZE: *smallfont + FONT_COLOR: *black + BACKGROUND_IMAGE: *background + IPADDRESS: + TEXT: 192.168.0.1 + X: 10 + Y: 448 + FONT: *font + FONT_SIZE: *midfont + FONT_COLOR: *black + BACKGROUND_IMAGE: *background + GPU0: + TEXT: GPU0 · + X: 278 + Y: 10 + FONT: *font + FONT_SIZE: *smallfont + FONT_COLOR: *black + BACKGROUND_IMAGE: *background + GPU1: + TEXT: GPU1 + X: 546 + Y: 10 + FONT: *font + FONT_SIZE: *smallfont + FONT_COLOR: *black + BACKGROUND_IMAGE: *background + GPU2: + TEXT: GPU2 + X: 278 + Y: 170 + FONT: *font + FONT_SIZE: *smallfont + FONT_COLOR: *black + BACKGROUND_IMAGE: *background + GPU3: + TEXT: GPU3 + X: 546 + Y: 170 + FONT: *font + FONT_SIZE: *smallfont + FONT_COLOR: *black + BACKGROUND_IMAGE: *background + GPU4: + TEXT: GPU4 + X: 278 + Y: 332 + FONT: *font + FONT_SIZE: *smallfont + FONT_COLOR: *black + BACKGROUND_IMAGE: *background + GPU5: + TEXT: GPU5 + X: 546 + Y: 332 + FONT: *font + FONT_SIZE: *smallfont + FONT_COLOR: *black + BACKGROUND_IMAGE: *background + GPU0_PERCENT: + TEXT: "%" + X: 315 + Y: 39 + FONT: *font + FONT_SIZE: *midfont + BACKGROUND_IMAGE: *background + +STATS: + CPU: + PERCENTAGE: + INTERVAL: 1 + LINE_GRAPH: + SHOW: True + X: 0 + Y: 75 + WIDTH: 267 + HEIGHT: 61 + MIN_VALUE: 0 + MAX_VALUE: 100 + HISTORY_SIZE: 60 + AUTOSCALE: False + LINE_COLOR: 100, 100, 100 + AXIS: False + BACKGROUND_IMAGE: *background + TEXT: + SHOW: True + SHOW_UNIT: False + X: -8 + Y: 35 + FONT: *font + FONT_SIZE: *bigfont + FONT_COLOR: *black + BACKGROUND_IMAGE: *background + TEMPERATURE: + INTERVAL: 5 + LINE_GRAPH: + SHOW: False + X: 20 + Y: 20 + WIDTH: 126 + HEIGHT: 70 + MIN_VALUE: 30 + MAX_VALUE: 120 + HISTORY_SIZE: 20 + AUTOSCALE: True + LINE_COLOR: 0, 128, 192 + AXIS: False + # BACKGROUND_COLOR: 0, 0, 0 + BACKGROUND_IMAGE: background.png + TEXT: + SHOW: True + SHOW_UNIT: True + X: 100 + Y: 10 + FONT: *font + FONT_SIZE: *smallfont + FONT_COLOR: *black + BACKGROUND_IMAGE: *background + GPU: + INTERVAL: 1 + PERCENTAGE: + LINE_GRAPH: + SHOW: True + X: 268 + Y: 70 + WIDTH: 267 + HEIGHT: 90 + MIN_VALUE: 0 + MAX_VALUE: 100 + HISTORY_SIZE: 20 + AUTOSCALE: False + LINE_COLOR: *linecolor + AXIS: False + AXIS_COLOR: 255, 135, 0 + # BACKGROUND_COLOR: 0, 0, 0 + BACKGROUND_IMAGE: *background + TEXT: + SHOW: True + SHOW_UNIT: False + X: 260 + Y: 35 + FONT: *font + FONT_SIZE: *bigfont + FONT_COLOR: *black + BACKGROUND_IMAGE: *background + + TEMPERATURE: + TEXT: + SHOW: True + SHOW_UNIT: True + X: 325 + Y: 10 + FONT: *font + FONT_SIZE: *smallfont + FONT_COLOR: *black + BACKGROUND_IMAGE: *background + + MEMORY: + INTERVAL: 5 + VIRTUAL: + GRAPH: + SHOW: True + X: 10 + Y: 220 + WIDTH: 250 + HEIGHT: 20 + MIN_VALUE: 0 + MAX_VALUE: 100 + HISTORY_SIZE: 20 + AUTOSCALE: False + AXIS: False + AXIS_COLOR: 255, 135, 0 + BAR_COLOR: *linecolor + BACKGROUND_COLOR: *black + BACKGROUND_IMAGE: *background + PERCENT_TEXT: + SHOW: True + SHOW_UNIT: False + X: -8 + Y: 180 + FONT: *font + FONT_SIZE: *bigfont + FONT_COLOR: *black + BACKGROUND_IMAGE: *background + DISK: + INTERVAL: 5 + USED: + GRAPH: + SHOW: True + X: 10 + Y: 350 + WIDTH: 250 + HEIGHT: 20 + MIN_VALUE: 0 + MAX_VALUE: 100 + HISTORY_SIZE: 20 + AUTOSCALE: False + AXIS: False + AXIS_COLOR: 255, 135, 0 + BAR_COLOR: *linecolor + BACKGROUND_COLOR: *black + BACKGROUND_IMAGE: *background + PERCENT_TEXT: + SHOW: True + SHOW_UNIT: False + X: -8 + Y: 315 + FONT: *font + FONT_SIZE: *bigfont + FONT_COLOR: *black + BACKGROUND_IMAGE: *background + + # DATE: + # INTERVAL: 1 + # DAY: + # TEXT: + # FORMAT: medium + # SHOW: True + # X: 388 + # Y: 412 + # FONT: roboto-mono/RobotoMono-Regular.ttf + # FONT_SIZE: 26 + # FONT_COLOR: 0, 0, 0 + # # BACKGROUND_COLOR: 50, 50, 50 + # BACKGROUND_IMAGE: background.png + # HOUR: # Format (12/24h, timezone translations) will match your computer locale + # TEXT: + # FORMAT: medium # short (6:48 PM) / medium (6:48:53 PM) / long (6:48:53 PM UTC) / full (6:48:53 PM Coordinated Universal Time) + # SHOW: True + # X: 388 + # Y: 380 + # FONT: roboto-mono/RobotoMono-Regular.ttf + # FONT_SIZE: 26 + # FONT_COLOR: 0, 0, 0 + # # BACKGROUND_COLOR: 50, 50, 50 + # BACKGROUND_IMAGE: background.png