2222 2222 property string query:
"" 2223 2223 property
var state: clipboardService
? Util.parseJson(clipboardService.stateJson(), {
2225 - "clipboardPanelContract": {
2227 - "scrollableListChrome": {
2225 + "privateMode":
false,
2226 + "privateRole":
"ui.accent",
2231 - "clipboardPanelContract": {
2233 - "scrollableListChrome": {
2231 + "privateMode":
false,
2232 + "privateRole":
"ui.accent",
2236 2236 readonly property
var rows: state.rows
|| []
2237 - readonly property
var panel: state.clipboardPanelContract
|| ({
2241 2239 function refreshFrom(text) {
2290 2288 objectName:
"searchField" 2291 - width: parent.width
- 112 2289 + width: parent.width
- 108 2294 2292 color: root.theme
? root.theme.withAlpha(root.theme.ui.minor,
0.14)
: "transparent" 2295 2293 border.width:
0 2296 2294 border.color: root.theme
? root.theme.ui.accent
: "transparent" 2299 + anchors.left: parent.left
2300 + anchors.leftMargin:
11 2301 + anchors.verticalCenter: parent.verticalCenter
2303 + color: root.theme
? root.theme.ui.minor
: "white" 2304 + font.family:
"Symbols Nerd Font Mono" 2305 + font.pixelSize:
13 2301 2311 anchors.fill: parent
2302 - anchors.leftMargin:
10 2303 - anchors.rightMargin:
10 2312 + anchors.leftMargin:
32 2313 + anchors.rightMargin:
12 2304 2314 verticalAlignment:
TextInput.AlignVCenter
2305 2315 color: root.theme
? root.theme.content.normal
: "white" 2306 2316 selectionColor: root.theme
? root.theme.ui.focus
: "#ffffff" 2316 2326 anchors.left: parent.left
2317 - anchors.leftMargin:
10 2327 + anchors.leftMargin:
32 2318 2328 anchors.verticalCenter: parent.verticalCenter
2319 2329 visible: input.text.length
=== 0 2320 2330 theme: root.theme
2328 2338 objectName:
"privateModeChip" 2332 2342 color: root.theme
? root.theme.withAlpha(root.state.privateMode
? root.theme.warning
: root.theme.ui.accent,
0.2)
: "transparent" 2333 2343 border.width:
0 2334 2344 border.color: root.theme
? (root.state.privateMode
? root.theme.warning
: root.theme.ui.accent)
: "transparent" 2337 2347 anchors.centerIn: parent
2340 - selected: root.state.privateMode
2341 - text: root.state.privateMode
? "private" : "normal" 2351 + anchors.verticalCenter: parent.verticalCenter
2352 + text: root.state.privateMode
? "" : "" 2353 + color: root.theme
? (root.state.privateMode
? root.theme.warning
: root.theme.ui.accent)
: "white" 2354 + font.family:
"Symbols Nerd Font Mono" 2355 + font.pixelSize:
13 2359 + anchors.verticalCenter: parent.verticalCenter
2362 + text: root.state.privateMode
? "private" : "normal" 2354 2377 objectName:
"clipboardHistoryPanel" 2355 2378 width: parent.width
2356 - height:
Math.
min(
190,
Math.
max(
86, rowColumn.implicitHeight
+ 14))
2379 + height:
Math.
min(
440,
Math.
max(
120, rowColumn.implicitHeight
+ 16))
2359 2382 color: root.theme
? root.theme.withAlpha(root.theme.ui.backdrop,
0.7)
: "transparent" 2366 2389 anchors.fill: parent
2367 - anchors.margins:
7 2390 + anchors.margins:
8 2368 2391 contentHeight: rowColumn.implicitHeight
2393 + boundsBehavior:
Flickable.StopAtBounds
2383 2407 required property
var modelData
2385 - objectName:
"pinnedFirstRows" 2409 + objectName:
"clipRow" 2386 2410 width: rowColumn.width
2389 - color: root.theme
? root.theme.withAlpha(modelData.pinned
? root.theme.ui.focus
: root.theme.ui.minor, modelData.pinned
? 0.24 : 0.1)
: "transparent" 2391 - border.color: root.theme
? (modelData.pinned
? root.theme.ui.focus
: root.theme.ui.accent)
: "transparent" 2413 + color: root.theme
? root.theme.withAlpha(clipRow.modelData.pinned
? root.theme.ui.focus
: root.theme.ui.minor, clipRow.modelData.pinned
? 0.22 : 0.1)
: "transparent" 2414 + border.width: clipRow.modelData.pinned
? 1 : 0 2415 + border.color: root.theme
? root.theme.withAlpha(root.theme.ui.focus,
0.5)
: "transparent" 2424 + anchors.fill: parent
2425 + hoverEnabled:
true 2426 + acceptedButtons:
Qt.NoButton
2432 + anchors.left: parent.left
2433 + anchors.leftMargin:
9 2434 + anchors.verticalCenter: parent.verticalCenter
2441 + anchors.fill: parent
2442 + visible: clipRow.modelData.isImage
&& thumb.status
!== Image.Error
2445 + source: clipRow.modelData.isImage
? "file://" + encodeURI(clipRow.modelData.imagePath
|| "")
: "" 2446 + sourceSize.width:
36 2447 + sourceSize.height:
36 2448 + fillMode:
Image.PreserveAspectCrop
2449 + asynchronous:
true 2457 + anchors.fill: parent
2458 + visible:
!clipRow.modelData.isImage
&& !!clipRow.modelData.swatch
2460 + color: clipRow.modelData.swatch
? clipRow.modelData.swatch
: "transparent" 2462 + border.color: root.theme
? root.theme.withAlpha(root.theme.ui.normal,
0.25)
: "transparent" 2468 + anchors.centerIn: parent
2469 + visible:
!swatch.visible
&& !thumb.visible
2470 + text: clipRow.modelData.icon
2471 + color: root.theme
? root.theme.ui.accent
: "white" 2472 + font.family:
"Symbols Nerd Font Mono" 2473 + font.pixelSize:
18 2394 - anchors.left: parent.left
2479 + anchors.left: leadingSlot.right
2395 2480 anchors.right: actionRail.left
2396 2481 anchors.verticalCenter: parent.verticalCenter
2397 - anchors.leftMargin:
8 2482 + anchors.leftMargin:
11 2483 + anchors.rightMargin:
8 2401 2487 theme: root.theme
2408 2494 theme: root.theme
2409 2495 variant:
"meta" 2410 - text: clipRow.modelData.body
2496 + text: clipRow.modelData.kind
+ " · " + clipRow.modelData.age
2411 2497 width: parent.width
2412 2498 elide:
Text.ElideRight
2507 + anchors.right: parent.right
2508 + anchors.rightMargin:
11 2509 + anchors.top: parent.top
2510 + anchors.topMargin:
8 2511 + visible: clipRow.modelData.pinned
&& !rowHover.containsMouse
2513 + color: root.theme
? root.theme.ui.focus
: "white" 2514 + font.family:
"Symbols Nerd Font Mono" 2515 + font.pixelSize:
11 2420 - objectName:
"maskedActionRail" 2421 2521 anchors.right: parent.right
2422 - anchors.rightMargin:
6 2522 + anchors.rightMargin:
8 2423 2523 anchors.verticalCenter: parent.verticalCenter
2525 + opacity: rowHover.containsMouse
? 1 : 0 2526 + enabled: rowHover.containsMouse
2528 + Behavior on opacity {
2530 + duration: root.theme
&& root.theme.lowPowerMode
? 0 : 120 2531 + easing.type:
Easing.OutCubic
2427 2537 model: [
"copy",
"paste",
"pin",
"delete"]
2432 2542 required property string modelData
2434 - width: actionButton.modelData
=== "delete" ? 42 : 34 2437 - color: root.theme
? root.theme.withAlpha(actionButton.modelData
=== "delete" ? root.theme.error
: root.theme.ui.accent,
0.16)
: "transparent" 2439 - border.color: root.theme
? (actionButton.modelData
=== "delete" ? root.theme.error
: root.theme.ui.accent)
: "transparent" 2544 + readonly property bool isDelete: actionButton.modelData
=== "delete" 2545 + readonly property bool isPin: actionButton.modelData
=== "pin" 2546 + readonly property bool pinActive: actionButton.isPin
&& clipRow.modelData.pinned
2547 + readonly property string tint:
!root.theme
? "transparent" : (actionButton.isDelete
? root.theme.error
: (actionButton.pinActive
? root.theme.ui.focus
: root.theme.ui.accent))
2552 + color: root.theme
? root.theme.withAlpha(actionButton.tint, actionButton.pinActive
? 0.32 : 0.16)
: "transparent" 2554 + border.color:
"transparent" 2442 2557 anchors.centerIn: parent
2445 - text: actionButton.modelData
=== "copy" ? "cp" : actionButton.modelData
=== "paste" ? "ps" : actionButton.modelData
=== "pin" ? (clipRow.modelData.pinned
? "un" : "pin")
: "del" 2558 + text: actionButton.modelData
=== "copy" ? "" : actionButton.modelData
=== "paste" ? "" : actionButton.isPin
? "" : "" 2559 + color: actionButton.isDelete
? (root.theme
? root.theme.error
: "white")
: (root.theme
? (actionButton.pinActive
? root.theme.ui.focus
: root.theme.ui.normal)
: "white")
2560 + font.family:
"Symbols Nerd Font Mono" 2561 + font.pixelSize:
13 2452 2568 root.copy(clipRow.modelData.id);
2453 2569 else if (actionButton.modelData
=== "paste")
2454 2570 root.paste(clipRow.modelData.id);
2455 - else if (actionButton.modelData
=== "pin")
2571 + else if (actionButton.isPin)
2456 2572 root.togglePin(clipRow.modelData.id);
2458 2574 root.deleteRow(clipRow.modelData.id);
2477 - anchors.left: parent.left
2478 - anchors.right: parent.right
2479 - anchors.top: parent.top
2480 - height: root.state.scrollableListChrome
&& root.state.scrollableListChrome.topEdgeFade
? root.state.scrollableListChrome.fadeSize
: 0 2481 - visible: height
> 0 2483 - gradient: Gradient {
2486 - color: root.theme
? root.theme.ui.backdrop
: "black" 2491 - color:
"transparent" 2499 - anchors.left: parent.left
2500 - anchors.right: parent.right
2501 - anchors.bottom: parent.bottom
2502 - height: root.state.scrollableListChrome
&& root.state.scrollableListChrome.bottomEdgeFade
? root.state.scrollableListChrome.fadeSize
: 0 2503 - visible: height
> 0 2506 - gradient: Gradient {
2509 - color: root.theme
? root.theme.ui.backdrop
: "black" 2514 - color:
"transparent"