mirror of
https://github.com/luneko/SweetTokyoNight.git
synced 2025-12-15 16:09:53 +01:00
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.
22 lines
515 B
QML
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
|
|
}
|
|
}
|