Split the button into two, copy url or open in tab
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
438a17583a
commit
2ede686495
1
Makefile
1
Makefile
@ -5,6 +5,7 @@ FILES = $(PROJECT)/main.qml
|
||||
FILES += $(PROJECT)/finder.js
|
||||
FILES += $(PROJECT)/metadata.desktop
|
||||
FILES += $(PROJECT)/rss.svg
|
||||
FILES += $(PROJECT)/clipboard.svg
|
||||
|
||||
package:
|
||||
zip -X $(PROJECT)_v$(VERSION).zip $(FILES)
|
||||
|
@ -12,3 +12,6 @@ Go to [Falkon store](https://store.falkon.org/p/1689113/) press `Install` and fo
|
||||
|
||||
### Manual
|
||||
Copy the `rssfinder` directory into `~/.config/falkon/plugins/`
|
||||
|
||||
## Thanks to
|
||||
The `clipboard` icon is talken from [SVG Repo](https://www.svgrepo.com/svg/260400/clipboard).
|
||||
|
34
rssfinder/clipboard.svg
Normal file
34
rssfinder/clipboard.svg
Normal file
@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
||||
<svg height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
viewBox="0 0 512 512" xml:space="preserve">
|
||||
<path style="fill:#ED8800;" d="M102.8,512c-19.94,0-36.162-16.222-36.162-36.162V91.694c0-19.94,16.222-36.162,36.162-36.162h306.4
|
||||
c19.94,0,36.162,16.222,36.162,36.162v384.144c0,19.94-16.222,36.162-36.162,36.162H102.8z"/>
|
||||
<path style="fill:#CC7400;" d="M409.2,55.531h-33.319c19.94,0,36.162,16.222,36.162,36.162v384.144
|
||||
c0,19.94-16.222,36.162-36.162,36.162H409.2c19.939,0,36.162-16.222,36.162-36.162V91.694
|
||||
C445.362,71.753,429.14,55.531,409.2,55.531z"/>
|
||||
<path style="fill:#ECE5DD;" d="M384.629,99.957H127.371c-8.993,0-16.308,7.316-16.308,16.308v251.353v83.648
|
||||
c0,8.993,7.316,16.308,16.308,16.308h83.648h89.961h83.648c8.993,0,16.308-7.316,16.308-16.308v-83.648V116.265
|
||||
C400.937,107.272,393.621,99.957,384.629,99.957z"/>
|
||||
<path style="fill:#D9CBBD;" d="M384.629,99.957H351.31c8.993,0,16.308,7.316,16.308,16.308v251.353v83.648
|
||||
c0,8.993-7.316,16.308-16.308,16.308h33.319c8.993,0,16.308-7.316,16.308-16.308v-83.648V116.265
|
||||
C400.937,107.272,393.621,99.957,384.629,99.957z"/>
|
||||
<path style="fill:#3E3D43;" d="M200.469,101.067c-18.677,0-33.874-15.196-33.874-33.874s15.197-33.874,33.874-33.874h12.077
|
||||
C217.801,13.677,235.609,0,256,0s38.199,13.68,43.454,33.319h12.077c18.677,0,33.874,15.196,33.874,33.874
|
||||
s-15.197,33.874-33.874,33.874H200.469z"/>
|
||||
<path style="fill:#D9CBBD;" d="M195.901,366.508c8.949,0,16.23,7.281,16.23,16.23l0.785,84.838L111.063,365.722L195.901,366.508z"/>
|
||||
<path style="fill:#C0AB91;" d="M111.063,365.722l101.852,101.852h-85.544c-8.993,0-16.308-7.316-16.308-16.308V365.722z"/>
|
||||
<g>
|
||||
<path style="fill:#BABABA;" d="M167.15,175.479h111.063c4.601,0,8.33-3.73,8.33-8.33s-3.728-8.33-8.33-8.33H167.15
|
||||
c-4.601,0-8.33,3.729-8.33,8.33S162.548,175.479,167.15,175.479z"/>
|
||||
<path style="fill:#BABABA;" d="M322.638,175.479h22.213c4.601,0,8.33-3.73,8.33-8.33s-3.728-8.33-8.33-8.33h-22.213
|
||||
c-4.601,0-8.33,3.729-8.33,8.33S318.036,175.479,322.638,175.479z"/>
|
||||
<path style="fill:#BABABA;" d="M167.15,242.117h44.425c4.601,0,8.33-3.729,8.33-8.33c0-4.6-3.728-8.33-8.33-8.33H167.15
|
||||
c-4.601,0-8.33,3.729-8.33,8.33C158.82,238.388,162.548,242.117,167.15,242.117z"/>
|
||||
<path style="fill:#BABABA;" d="M247.67,233.787c0,4.6,3.728,8.33,8.33,8.33h66.638c4.601,0,8.33-3.729,8.33-8.33
|
||||
c0-4.6-3.728-8.33-8.33-8.33H256C251.399,225.458,247.67,229.187,247.67,233.787z"/>
|
||||
<path style="fill:#BABABA;" d="M167.15,308.755h133.275c4.601,0,8.33-3.729,8.33-8.33s-3.728-8.33-8.33-8.33H167.15
|
||||
c-4.601,0-8.33,3.729-8.33,8.33S162.548,308.755,167.15,308.755z"/>
|
||||
</g>
|
||||
<circle style="fill:#FFFFFF;" cx="256" cy="44.98" r="11.106"/>
|
||||
</svg>
|
After Width: | Height: | Size: 2.8 KiB |
@ -85,27 +85,51 @@ Falkon.PluginInterface {
|
||||
Component {
|
||||
id: contactsDelegate
|
||||
|
||||
Button {
|
||||
hoverEnabled: true
|
||||
onClicked: Falkon.Clipboard.copy(url)
|
||||
RowLayout {
|
||||
id: rowWrapper
|
||||
spacing: 2
|
||||
width: rssList.width
|
||||
height: wrapper.height
|
||||
|
||||
ToolTip.delay: 1000
|
||||
ToolTip.timeout: 5000
|
||||
ToolTip.visible: hovered
|
||||
ToolTip.text: i18n("Click to copy URL")
|
||||
Button {
|
||||
hoverEnabled: true
|
||||
onClicked: Falkon.Tabs.addTab({
|
||||
url: url,
|
||||
windowId: Falkon.Windows.getCurrent()
|
||||
})
|
||||
|
||||
ColumnLayout {
|
||||
id: wrapper
|
||||
spacing: 2
|
||||
ToolTip.visible: hovered
|
||||
ToolTip.text: i18n("Open in new tab")
|
||||
|
||||
Label {
|
||||
font.bold: true
|
||||
text: title
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
contentItem: ColumnLayout {
|
||||
Label {
|
||||
font.bold: true
|
||||
topPadding: 5
|
||||
leftPadding: 5
|
||||
text: title
|
||||
}
|
||||
Label {
|
||||
leftPadding: 5
|
||||
bottomPadding: 5
|
||||
text: url
|
||||
}
|
||||
}
|
||||
Label {
|
||||
text: url
|
||||
}
|
||||
|
||||
Button {
|
||||
hoverEnabled: true
|
||||
onClicked: Falkon.Clipboard.copy(url)
|
||||
|
||||
ToolTip.visible: hovered
|
||||
ToolTip.text: i18n("Copy URL")
|
||||
|
||||
Layout.fillHeight: true
|
||||
|
||||
contentItem: Image {
|
||||
source: 'clipboard.svg'
|
||||
sourceSize.height: parent.height
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user