Improve tabbar details

pull/2/head
reionwong 4 years ago
parent ade1937069
commit c939ca8934

@ -1,6 +1,6 @@
[Background]
Bold=false
Color=46, 46, 46
Color=28, 28, 29
Transparency=false
[BackgroundIntense]

@ -18,7 +18,9 @@
*/
#include "processhelper.h"
#include <QDesktopServices>
#include <QProcess>
#include <QUrl>
ProcessHelper *SELF = nullptr;
@ -40,3 +42,13 @@ bool ProcessHelper::startDetached(const QString &program, const QStringList &arg
{
return QProcess::startDetached(program, arguments);
}
bool ProcessHelper::openUrl(const QString &url)
{
QUrl _url = QUrl::fromUserInput(url);
if (url.isNull())
return false;
return QDesktopServices::openUrl(_url);
}

@ -31,6 +31,7 @@ public:
explicit ProcessHelper(QObject *parent = nullptr);
Q_INVOKABLE bool startDetached(const QString &program, const QStringList &arguments);
Q_INVOKABLE bool openUrl(const QString &url);
};

@ -175,7 +175,7 @@ Page {
MenuItem {
text: qsTr("Open File Manager")
onTriggered: Process.startDetached("gio", ["open", _session.currentDir])
onTriggered: Process.openUrl(_session.currentDir)
}
}

@ -34,6 +34,7 @@ FishUI.Window {
height: settings.height
title: currentItem && currentItem.terminal ? currentItem.terminal.session.title : ""
background.color: FishUI.Theme.secondBackgroundColor
header.height: 45
property int currentIndex: -1
@ -71,7 +72,7 @@ FishUI.Window {
anchors.leftMargin: FishUI.Units.smallSpacing
anchors.rightMargin: FishUI.Units.smallSpacing
anchors.topMargin: FishUI.Units.smallSpacing
anchors.bottomMargin: FishUI.Units.smallSpacing / 2
anchors.bottomMargin: FishUI.Units.smallSpacing
spacing: FishUI.Units.smallSpacing
ListView {

Loading…
Cancel
Save