mirror of
				https://github.com/arcan1s/awesome-widgets.git
				synced 2025-10-31 05:13:40 +00:00 
			
		
		
		
	drop kde4 from master
This commit is contained in:
		
							
								
								
									
										99
									
								
								sources/desktop-panel/package/contents/ui/about.qml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										99
									
								
								sources/desktop-panel/package/contents/ui/about.qml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,99 @@ | ||||
| /*************************************************************************** | ||||
|  *   This file is part of awesome-widgets                                  * | ||||
|  *                                                                         * | ||||
|  *   awesome-widgets 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 3 of the    * | ||||
|  *   License, or (at your option) any later version.                       * | ||||
|  *                                                                         * | ||||
|  *   awesome-widgets 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 awesome-widgets. If not, see http://www.gnu.org/licenses/  * | ||||
|  ***************************************************************************/ | ||||
|  | ||||
| import QtQuick 2.0 | ||||
| import QtQuick.Controls 1.3 as QtControls | ||||
| import QtQuick.Layouts 1.0 as QtLayouts | ||||
|  | ||||
| import org.kde.plasma.desktoppanel 1.0 | ||||
|  | ||||
|  | ||||
| Item { | ||||
|     id: aboutPage | ||||
|     width: childrenRect.width | ||||
|     height: childrenRect.height | ||||
|     implicitWidth: pageColumn.implicitWidth | ||||
|     implicitHeight: pageColumn.implicitHeight | ||||
|  | ||||
|     property bool debug: DPAdds.isDebugEnabled() | ||||
|  | ||||
|  | ||||
|     Column { | ||||
|         id: pageColumn | ||||
|         anchors.fill: parent | ||||
|         QtControls.TabView { | ||||
|             height: parent.height | ||||
|             width: parent.width | ||||
|             QtControls.Tab { | ||||
|                 title: i18n("About") | ||||
|  | ||||
|                 QtLayouts.ColumnLayout { | ||||
|                     QtControls.Label { | ||||
|                         QtLayouts.Layout.fillWidth: true | ||||
|                         horizontalAlignment: Text.AlignHCenter | ||||
|                         text: DPAdds.getAboutText("header") | ||||
|                     } | ||||
|  | ||||
|                     QtControls.Label { | ||||
|                         QtLayouts.Layout.fillWidth: true | ||||
|                         horizontalAlignment: Text.AlignJustify | ||||
|                         text: DPAdds.getAboutText("description") | ||||
|                     } | ||||
|  | ||||
|                     QtControls.Label { | ||||
|                         QtLayouts.Layout.fillWidth: true | ||||
|                         horizontalAlignment: Text.AlignLeft | ||||
|                         textFormat: Text.RichText | ||||
|                         text: DPAdds.getAboutText("links") | ||||
|                     } | ||||
|  | ||||
|                     QtControls.Label { | ||||
|                         QtLayouts.Layout.fillWidth: true | ||||
|                         font.capitalization: Font.SmallCaps | ||||
|                         horizontalAlignment: Text.AlignHCenter | ||||
|                         textFormat: Text.RichText | ||||
|                         text: DPAdds.getAboutText("copy") | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|             QtControls.Tab { | ||||
|                 title: i18n("Acknowledgment") | ||||
|  | ||||
|                 QtLayouts.ColumnLayout { | ||||
|                     QtControls.Label { | ||||
|                         QtLayouts.Layout.fillWidth: true | ||||
|                         wrapMode: Text.WordWrap | ||||
|                         horizontalAlignment: Text.AlignJustify | ||||
|                         text: DPAdds.getAboutText("translators") | ||||
|                     } | ||||
|  | ||||
|                     QtControls.Label { | ||||
|                         QtLayouts.Layout.fillWidth: true | ||||
|                         horizontalAlignment: Text.AlignJustify | ||||
|                         textFormat: Text.RichText | ||||
|                         text: DPAdds.getAboutText("3rdparty") | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     Component.onCompleted: { | ||||
|         if (debug) console.log("[about::onCompleted]") | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user