Skip to content
Snippets Groups Projects
Commit f7bc95d4 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

logsview: fix ugly theme

Change-Id: Ic38b7c322f0ffe9690a11294683d2d605d7f128e
GitLab: #1153
parent dc53aa88
No related branches found
No related tags found
No related merge requests found
......@@ -85,136 +85,123 @@ Window {
}
hasOpened = true;
}
color: JamiTheme.backgroundColor
ColumnLayout {
anchors.fill: parent
spacing: 0
Rectangle {
id: buttonRectangleBackground
RowLayout {
id: buttons
Layout.alignment: Qt.AlignHCenter
Layout.fillWidth: true
Layout.preferredHeight: JamiTheme.preferredFieldHeight * 2
border.width: 0
color: JamiTheme.backgroundColor
radius: JamiTheme.modalPopupRadius
RowLayout {
id: buttons
anchors.centerIn: parent
ToggleSwitch {
id: startStopToggle
Layout.fillWidth: true
Layout.leftMargin: JamiTheme.preferredMarginSize
Layout.rightMargin: JamiTheme.preferredMarginSize
checked: false
labelText: JamiStrings.logsViewDisplay
onSwitchToggled: {
logging = !logging;
if (logging) {
isStopped = false;
root.cancelPressed = false;
monitor(true);
} else {
isStopped = true;
root.cancelPressed = true;
monitor(false);
}
}
}
MaterialButton {
id: clearButton
Layout.alignment: Qt.AlignHCenter
Layout.topMargin: JamiTheme.preferredMarginSize
Layout.bottomMargin: JamiTheme.preferredMarginSize
ToggleSwitch {
id: startStopToggle
preferredWidth: itemWidth / widthDivisor
buttontextHeightMargin: JamiTheme.buttontextHeightMargin
Layout.fillWidth: true
Layout.leftMargin: JamiTheme.preferredMarginSize
Layout.rightMargin: JamiTheme.preferredMarginSize
secondary: true
color: JamiTheme.buttonTintedBlack
hoveredColor: JamiTheme.buttonTintedBlackHovered
pressedColor: JamiTheme.buttonTintedBlackPressed
text: JamiStrings.logsViewClear
autoAccelerator: true
checked: false
labelText: JamiStrings.logsViewDisplay
onClicked: {
logsText.clear();
logging = false;
startStopToggle.checked = false;
onSwitchToggled: {
logging = !logging;
if (logging) {
isStopped = false;
root.cancelPressed = false;
monitor(true);
} else {
isStopped = true;
root.cancelPressed = true;
UtilsAdapter.logList = [];
monitor(false);
}
}
}
MaterialButton {
id: copyButton
MaterialButton {
id: clearButton
Layout.alignment: Qt.AlignHCenter
Layout.topMargin: JamiTheme.preferredMarginSize
Layout.bottomMargin: JamiTheme.preferredMarginSize
preferredWidth: itemWidth / widthDivisor
buttontextHeightMargin: JamiTheme.buttontextHeightMargin
secondary: true
color: JamiTheme.buttonTintedBlack
hoveredColor: JamiTheme.buttonTintedBlackHovered
pressedColor: JamiTheme.buttonTintedBlackPressed
text: JamiStrings.logsViewClear
autoAccelerator: true
onClicked: {
logsText.clear();
logging = false;
startStopToggle.checked = false;
root.cancelPressed = true;
UtilsAdapter.logList = [];
monitor(false);
}
}
Layout.alignment: Qt.AlignHCenter
MaterialButton {
id: copyButton
preferredWidth: itemWidth / widthDivisor
buttontextHeightMargin: JamiTheme.buttontextHeightMargin
Layout.alignment: Qt.AlignHCenter
color: JamiTheme.buttonTintedBlack
hoveredColor: JamiTheme.buttonTintedBlackHovered
pressedColor: JamiTheme.buttonTintedBlackPressed
preferredWidth: itemWidth / widthDivisor
buttontextHeightMargin: JamiTheme.buttontextHeightMargin
secondary: true
text: JamiStrings.logsViewCopy
autoAccelerator: true
color: JamiTheme.buttonTintedBlack
hoveredColor: JamiTheme.buttonTintedBlackHovered
pressedColor: JamiTheme.buttonTintedBlackPressed
onClicked: {
logsText.selectAll();
logsText.copy();
logsText.deselect();
copiedToolTip.open();
}
secondary: true
text: JamiStrings.logsViewCopy
autoAccelerator: true
ToolTip {
id: copiedToolTip
onClicked: {
logsText.selectAll();
logsText.copy();
logsText.deselect();
copiedToolTip.open();
}
height: JamiTheme.preferredFieldHeight
TextArea {
text: JamiStrings.logsViewCopied
color: JamiTheme.textColor
}
background: Rectangle {
color: JamiTheme.primaryBackgroundColor
}
ToolTip {
id: copiedToolTip
height: JamiTheme.preferredFieldHeight
TextArea {
text: JamiStrings.logsViewCopied
color: JamiTheme.textColor
}
background: Rectangle {
color: JamiTheme.primaryBackgroundColor
}
}
}
MaterialButton {
id: reportButton
MaterialButton {
id: reportButton
Layout.alignment: Qt.AlignHCenter
Layout.topMargin: JamiTheme.preferredMarginSize
Layout.bottomMargin: JamiTheme.preferredMarginSize
Layout.rightMargin: JamiTheme.preferredMarginSize
Layout.alignment: Qt.AlignHCenter
Layout.topMargin: JamiTheme.preferredMarginSize
Layout.bottomMargin: JamiTheme.preferredMarginSize
Layout.rightMargin: JamiTheme.preferredMarginSize
preferredWidth: itemWidth / widthDivisor
buttontextHeightMargin: JamiTheme.buttontextHeightMargin
preferredWidth: itemWidth / widthDivisor
buttontextHeightMargin: JamiTheme.buttontextHeightMargin
color: JamiTheme.buttonTintedBlack
hoveredColor: JamiTheme.buttonTintedBlackHovered
pressedColor: JamiTheme.buttonTintedBlackPressed
text: JamiStrings.logsViewReport
secondary: true
autoAccelerator: true
color: JamiTheme.buttonTintedBlack
hoveredColor: JamiTheme.buttonTintedBlackHovered
pressedColor: JamiTheme.buttonTintedBlackPressed
text: JamiStrings.logsViewReport
secondary: true
autoAccelerator: true
onClicked: Qt.openUrlExternally("https://jami.net/bugs-and-improvements/")
}
onClicked: Qt.openUrlExternally("https://jami.net/bugs-and-improvements/")
}
}
......@@ -235,7 +222,7 @@ Window {
font.hintingPreference: Font.PreferNoHinting
readOnly: true
color: JamiTheme.blackColor
color: JamiTheme.textColor
wrapMode: TextArea.Wrap
selectByMouse: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment