Spracherkennung für: .qml vermutete Sprache: Abap {ABAP[44] Delphi[36] SPS[32]} [Methode: maximale Elemente, drei Dimensionen]
/*****************************************************************************
* Copyright (C) 2019 VLC authors and VideoLAN
*
* 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
import QtQuick.Templates as T
import VLC.MainInterface
import VLC.Style
T.ToolButton {
id: control
font.pixelSize: VLCStyle.fontSize_normal
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
padding: VLCStyle.margin_xxsmall
property real radius: VLCStyle.button_radius
// Keys
Keys.priority: Keys.AfterItem
Keys.onPressed: (event) => Navigation.defaultKeyAction(event)
// Accessible
Accessible.onPressAction: control.clicked()
readonly property ColorContext colorContext : ColorContext {
id: theme
colorSet: ColorContext.ToolButton
enabled: control.enabled
focused: control.visualFocus
hovered: control.hovered
pressed: control.down
}
contentItem: T.Label {
text: control.text
font: control.font
color: theme.fg.primary
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
//button text is already exposed
Accessible.ignored: true
}
background: AnimatedBackground {
enabled: theme.initialized
color: theme.bg.primary
border.color: visualFocus ? theme.visualFocus : Qt.alpha(theme.visualFocus, 0.0)
radius: control.radius
}
}
[Dauer der Verarbeitung: 0.1 Sekunden, vorverarbeitet 2026-10-24]