Files
SweetTokyoNight/kde/sddm/components/Input.qml
Abraham Murciano c17dff593d Use parent width rather than fixed width
When the action buttons are too wide, it causes the text box to be that wide, since the `Input` has `Layout.fillWidth: true` set, causing the text to overflow the background. This change makes the background expand with the text.
2021-04-15 21:44:52 +03:00

22 lines
515 B
QML

import QtQuick 2.2
import QtQuick.Layouts 1.2
import QtQuick.Controls 2.4
import QtQuick.Controls.Styles 1.4
TextField {
placeholderTextColor: config.color
palette.text: config.color
font.pointSize: config.fontSize
font.family: config.font
background: Rectangle {
color: "#1E2326"
opacity: 0.7
radius: parent.width / 2
width: parent.width
height: width / 9
border.width: 1
border.color: "#121517"
anchors.centerIn: parent
}
}