summaryrefslogtreecommitdiffstats
path: root/gui/devices/240x240/res (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Reduce themes to 5 and rely on scalingEthan Yonker2015-03-1336-418/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will significantly reduce theme maintainence and should be a lot more sustainable over time. Eliminate most themes leaving only 5 remaining in 3 categores: * watch_mdpi: 320x320 * portrait_mdpi: 480x800 * portrait_hdpi: 1080x1920 * landscape_mdpi: 800x480 * landscape_hdpi: 1920x1200 Add handling to map the old DEVICE RESOLUTION to the new TW_THEME build flag. New devices should specify a theme using the new TW_THEME build flag using one of the 5 values from the list above. Long term we will eliminate the use of the DEVICE_RESOLUTION flag in favor of the new flag. Change the way sliders render so that they completely follow the placement="5". This will probably break some custom themes but is necessary so that we can retain the aspect ratio on slider images and still have them rendered at the center of the screen. Add code to the console slideout button so that it can be centered. Centering the slideout button allows us to keep the button at the center of the screen when retaining aspect ratios on the image. Add more retain aspect ratios for home, back, slideout, folder, file, and lock screen images. Change the way we build the top bar in TWRP. It is now mostly drawn using fill objects and the TWRP logo is a separate image so that we can retain its aspect ratio during scaling. Thanks to Mark Norelus for providing the TWRP logo. Change-Id: I801a7b3163cad9ef353461f4c327690a9ccbb3aa
* gui: make scroll bars smaller and transparentthat2015-03-061-4/+4
| | | | | | | | | Not all themes tested. To center the scrollbar horizontally on the line, the width must be fastscroll_linew + 2 * something. Change-Id: I3c2878734ffbd2e8ef3bc7c64b2f16d4f61aeda5
* GUI: Use valid XML syntaxMatt Mower2015-03-051-4/+4
| | | | | | | | | | | | | Safer handling: & --> &amp; > --> &gt; < --> &lt; Broken tags: </function> --> </action> <folders="1"...> --> <filter folders="1"...> Change-Id: Iaddaf9db163e08250cb4deefdfdb814c589ccb47
* Scale the GUI to fit the screenEthan Yonker2015-02-102-4/+6
| | | | | | | | | | | | With this patch set, if needed, we scale the images during early boot. TTF support is needed to properly scale the font. No font scaling is done on the old style fixed width font used in the console. Special thanks to _that for figuring out the scaling and blending function calls to make this possible. Change-Id: If2f79bef16d6db2e1298bfc3d00c9bcca2bee37a
* Merge "Use power button to go back in watch themes" into android-5.0Dees Troy2015-01-091-1/+1
|\
| * Use power button to go back in watch themesVojtech Bocek2015-01-091-1/+1
| | | | | | | | | | Change-Id: I1463a0ba62a23c68c15f05e79a99fa8509314373 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* | Allow flashing of images via the GUIEthan Yonker2015-01-091-0/+1
|/ | | | | | | | | | | - Use the Images... button in the lower right of the zip install page - Unify image flashing functions between restore and image flash - boot and recovery partitions are flashable by default - use fstab flag flashimg=1 or 0 to override defaults - file system partitions are currently not flashable Change-Id: I822dc446030543c55d2153e219d67a1292374ffc
* display cpu temperature in twrpJenkins2014-10-141-2/+11
| | | | | | | use TW_NO_CPU_TEMP := true to disable display use TW_CPU_CUSTOM_PATH := path to set custom path Change-Id: Id260ecbb4ec36a78442387329944f67003d0f6a0
* Add support for TrueType fontsVojtech Bocek2014-10-141-3/+3
| | | | | | | | | | | | | * Keeps original font system in place * Uses the same API as original font system: - You can render only one line at a time - You can only use one font and color for one gr_text* call * Caches all rendered text, with a string cache limited to 400 entries, then it trucates to 250, which results in memory usage hovering around 5-10MB Change-Id: I36107b9dcd8d57bae4486fce8b8f64e49ef3d906 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* Minor tweaks to watch ui.xml filesEthan Yonker2014-07-301-4/+1
| | | | Change-Id: I9448eed41e43c4fce575b7ed12b5270a1d75f99b
* Add 320x320 theme and split out watch.xml for square watch layoutEthan Yonker2014-07-301-3836/+4
| | | | Change-Id: I7fe38b20913a981942105637a527a2d26ed035a5
* Update 240x240 themeEthan Yonker2014-07-292-243/+647
| | | | Change-Id: I1a50fa0bb750b229220c217d24253b65f24d2920
* Implement "take a screenshot" featureVojtech Bocek2014-07-091-0/+5
| | | | | | | | * Like in android - press power+volume down, screenshots are saved in /sdcard/Pictures/Screenshots (if /sdcard is mounted) or /tmp Change-Id: Iaefa15b11a1d5fdfac57d77388db1621f378a8d4 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* Color in the consoleEthan Yonker2014-07-091-0/+3
| | | | | | | | Allow each gui_print command to specify a color Change LOGERR to use the error color Theme should specify colors for error, warning, and highlight Change-Id: Ie8ece34111f604e25fcb79e5b731cd4e61038ff9
* Whitespace and minor code cleanupMatt Mower2014-06-041-9/+9
| | | | | | This is by no means comprehensive, but is quite a bit better already. Change-Id: Ibc8654a5dfb0eec39cbd0b64bdb52bb4fbfe2f7e
* Support alternative .android_secure locationMatt Mower2014-04-161-1/+4
| | | | | | | | | | | | | | | | Some devices (jewel, m8) have .android_secure at a non-standard location. Allow a different partition to be specified as the home of .android_secure using the fstab flag 'andsec'. Using the /data/media variant of jewel as an example, recovery.fstab or twrp.fstab could be edited like follows: /external_sd vfat /dev/block/mmcblk1p1 flags=display="MicroSD";andsec Note, this is NOT a method to move .android_secure in your ROM. Your ROM must already write to this alternative location. Change-Id: I3a6e4e63aaddb35870b79e80938b0f9c2c902443
* Refresh page after updating partition sizesMatt Mower2014-04-021-1/+4
| | | | | | | | Some (all?) devices do not update the partition size displayed on the backup screen when selecting "Refresh Sizes". Refresh the page after recalculating sizes. Change-Id: Id34da6c738f86501f73cbd7874f6921d1cda32c4
* Tweak 240x240 themeDees Troy2014-03-061-4/+6
| | | | Change-Id: I0801d29aeb66678157123e3630b09a2b527ad4df
* Initial 240x240 thememasteroftime2014-01-1534-0/+3821
Change-Id: I478f172e1a549b50ebe29cf9a8b8618a84b3cb17