From 9c54548b2bca96a2fda4da3d15429756774abb26 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 21 Jul 2017 23:44:55 +0200 Subject: Housekeeping: Avatar.qml and FocusComposer.qml are no longer used --- framework/qml/Avatar.qml | 57 ------------------------------------------------ 1 file changed, 57 deletions(-) delete mode 100644 framework/qml/Avatar.qml (limited to 'framework/qml/Avatar.qml') diff --git a/framework/qml/Avatar.qml b/framework/qml/Avatar.qml deleted file mode 100644 index 0a7c4c18..00000000 --- a/framework/qml/Avatar.qml +++ /dev/null @@ -1,57 +0,0 @@ -/* - Copyright (C) 2016 Michael Bohlender, - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ - -import QtQuick 2.7 -import QtQuick.Layouts 1.1 - - -Rectangle { - - property string name; - - //colors taken from https://techbase.kde.org/Projects/Usability/HIG/Color - function calcColor(x) - { - switch (x % 5) { - case 0: - return "#16a085" - case 1: - return "#27ae60" - case 2: - return "#2980b9" - case 3: - return "#8e44ad" - case 4: - return "#c0392b" - } - } - - radius: 100 - - color: calcColor(name.length) - - Text { - anchors.centerIn: parent - - text: name.charAt(0) - - color: "#ecf0f1" - - font.capitalization: Font.AllUppercase - } -} -- cgit v1.2.3