|
@@ -1,4 +1,4 @@
|
|
-/**
|
|
|
|
|
|
+/*
|
|
* Nextcloud Android client application
|
|
* Nextcloud Android client application
|
|
*
|
|
*
|
|
* @author Andy Scherzinger
|
|
* @author Andy Scherzinger
|
|
@@ -7,17 +7,17 @@
|
|
* Copyright (C) 2011 Bartek Przybylski
|
|
* Copyright (C) 2011 Bartek Przybylski
|
|
* Copyright (C) 2015 ownCloud Inc.
|
|
* Copyright (C) 2015 ownCloud Inc.
|
|
* Copyright (C) 2016 Andy Scherzinger
|
|
* Copyright (C) 2016 Andy Scherzinger
|
|
- * <p>
|
|
|
|
|
|
+ *
|
|
* This program is free software; you can redistribute it and/or
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
|
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
|
* License as published by the Free Software Foundation; either
|
|
* License as published by the Free Software Foundation; either
|
|
* version 3 of the License, or any later version.
|
|
* version 3 of the License, or any later version.
|
|
- * <p>
|
|
|
|
|
|
+ *
|
|
* This program is distributed in the hope that it will be useful,
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
|
|
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
|
|
- * <p>
|
|
|
|
|
|
+ *
|
|
* You should have received a copy of the GNU Affero General Public
|
|
* You should have received a copy of the GNU Affero General Public
|
|
* License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
* License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
*/
|
|
@@ -835,6 +835,10 @@ public class DisplayUtils {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public static boolean themingEnabled() {
|
|
|
|
+ return getCapability().getServerColor() != null && !getCapability().getServerColor().isEmpty();
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Set color of title to white/black depending on background color
|
|
* Set color of title to white/black depending on background color
|
|
*
|
|
*
|