[vlc-commits] qml: change the style of the KeyNavigableTableView items

Adrien Maglo git at videolan.org
Thu Jun 13 13:10:34 CEST 2019


vlc | branch: master | Adrien Maglo <magsoft at videolan.org> | Tue Apr 16 11:10:31 2019 +0200| [fef480a4831f1f66575520438a0b017dc904f2bd] | committer: Thomas Guillem

qml: change the style of the KeyNavigableTableView items

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fef480a4831f1f66575520438a0b017dc904f2bd
---

 modules/gui/qt/qml/utils/KeyNavigableTableView.qml | 28 ++++------------------
 1 file changed, 5 insertions(+), 23 deletions(-)

diff --git a/modules/gui/qt/qml/utils/KeyNavigableTableView.qml b/modules/gui/qt/qml/utils/KeyNavigableTableView.qml
index c211ee5538..5a539367e3 100644
--- a/modules/gui/qt/qml/utils/KeyNavigableTableView.qml
+++ b/modules/gui/qt/qml/utils/KeyNavigableTableView.qml
@@ -52,7 +52,7 @@ NavigableFocusScope {
                 id: lineView
 
                 width: parent.width
-                height: VLCStyle.fontHeight_normal + VLCStyle.margin_xxsmall
+                height: VLCStyle.fontHeight_normal + VLCStyle.margin_large
 
                 color:  VLCStyle.colors.getBgColor(element.DelegateModel.inSelected, hoverArea.containsMouse, this.activeFocus)
 
@@ -77,8 +77,9 @@ NavigableFocusScope {
                             model: sortModel
 
                             Item {
-                                height: VLCStyle.fontHeight_normal
+                                height: parent.height
                                 width: model.width * view.width
+                                Layout.alignment: Qt.AlignVCenter
 
                                 Text {
                                     text: rowModel[model.criteria]
@@ -88,8 +89,8 @@ NavigableFocusScope {
 
                                     anchors {
                                         fill: parent
-                                        leftMargin: VLCStyle.margin_xxsmall
-                                        rightMargin: VLCStyle.margin_xxsmall
+                                        leftMargin: VLCStyle.margin_xsmall
+                                        rightMargin: VLCStyle.margin_xsmall
                                     }
                                     verticalAlignment: Text.AlignVCenter
                                     horizontalAlignment: Text.AlignLeft
@@ -98,17 +99,6 @@ NavigableFocusScope {
                         }
                     }
                 }
-
-                Rectangle {
-                    color: VLCStyle.colors.buttonBorder
-                    antialiasing: true
-                    anchors{
-                        right: parent.right
-                        bottom: parent.bottom
-                        left: parent    .left
-                    }
-                    height: 1
-                }
             }
         }
     }
@@ -175,14 +165,6 @@ NavigableFocusScope {
                     }
                 }
             }
-
-            //line below
-            Rectangle {
-                color: VLCStyle.colors.buttonBorder
-                height: 1
-                width: parent.width
-                anchors.bottom: parent.bottom
-            }
         }
 
         onSelectAll: delegateModel.selectAll()



More information about the vlc-commits mailing list