aboutsummaryrefslogtreecommitdiff
path: root/src/com/cyanogenmod/filemanager/ui/ThemeManager.java
Commit message (Collapse)AuthorAgeFilesLines
* CMFileManager: change dialog buttons to use dialog_text_color themeRaj Yengisetty2015-04-101-2/+1
| | | | | | | | Also remove themed button background for dialog buttons, causes the dialog buttons to appear too close to each other. Change-Id: I7059ad3da2b958aeca63d451fbd4cb1a26e792a4 (cherry picked from commit 1ac66923d6169e31eaccc148563f7116de894567)
* CMFileManager: LollipopificationAdnan Begovic2014-12-051-14/+40
| | | | Change-Id: I1702cf147b8ebc68f3a24175fa34cf397d823280
* [CMFM] bookmarks and history in a navigation drawerFlorian Edelmann2014-03-101-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | * used a modified version of DrawerLayout from the Support Library * moved bookmarks and history there -> always accessible * added a drawer icon * made all themeable * removed the BookmarksActivity and HistoryActivity * removed the BookmarksAdapter and HistoryAdapter as they are useless for LinearLayouts. I couldn't use ListViews because they scroll vertically - as well as the drawer itself. * removed the layouts for bookmarks and history Patch Set 2: tab cleanup and reset code I didn't touch Patch Set 3: fixed a FC after changing the theme when settings were opened by the drawer's overflow menu Patch Set 4: updated commit message Patch Set 5: updated commit message Patch Set 6: disabled "clear history" ActionBar action when history is empty Patch Set 7: fixed code style, fixed theme change issue with history items in the drawer, updated theme previews Patch Set 8: remove trailing whitespaces Change-Id: I215211e771ec7c96a2a669cdcc440556c310d6db
* Some optimizations spotted during profiling.Danny Baumann2013-09-201-19/+10
| | | | Change-Id: Ice5cc24d2574894798370eaaae144713414eb6cf
* CMFileManager: Themes support + Dark themeJorge Ruesga2012-11-111-0/+629
This change enabled the theme support, and added a new dark theme under the package CMFileManagerThemes. To compile under build system, it must be enabled in vendor/cm/config/common.mk or vendor/cm/config/themes_common.mk (this was requested in change http://review.cyanogenmod.org/#/c/26311/) Themes were enabled in a new settings option. Under this setting the application show the user the available themes installed in the system. -------------------- For build new themes, developers should: - Create a new package that contains an activity with: * Permission: com.cyanogenmod.filemanager.permissions.READ_THEME * Action: com.cyanogenmod.filemanager.actions.MAIN_THEME * Category: com.cyanogenmod.filemanager.categories.THEME - Define the themes_ids, themes_names and themes_descriptions arrays-strings definitions for the themes that the package support. - Create a xxx_theme.xml for every theme that the package support, where the xxx is the id of the theme. Put your resources in this file, prefixing the resource with the id of the theme (xxx_). For a list of all supported resources see theme.xml in res/values of CMFileManager project. ------------------- Other fixes: * Protect console buffers from NPE * Fix code style of xmls (layouts, drawables, ...) Patchset 2: Fixed code style and added Christian suggestion Patchset 3: Added forgotten READ_THEME permission check as described in the note above. Patchset 4: Use centerInside in theme preview for better image fit Change-Id: I4142da6d9ed1b06318e47ff9c05f9a874c62f3ae