-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
31 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Copyright (C) 2012 John Brooks <[email protected]> | ||
* Copyright (C) 2017-2023 Chupligin Sergey <[email protected]> | ||
* Copyright (C) 2017-2025 Chupligin Sergey <[email protected]> | ||
* | ||
* You may use this file under the terms of the BSD license as follows: | ||
* | ||
|
@@ -42,6 +42,9 @@ Image { | |
|
||
asynchronous: true | ||
//index is -1 when filters the model is reinitialized (e.g. filters change) so we have to treat that case too | ||
source: (index == -1) ? "" : (GridView.view.model.isVideo(index) ? "file:///usr/share/glacier-gallery/images/GridVideoThumbnail.jpg" : "image://nemoThumbnail/" + url) | ||
source: (url == undefined) ? "file:///usr/share/glacier-gallery/images/GridVideoThumbnail.jpg" | ||
: (index == -1) ? "" | ||
: (GridView.view.model.isVideo(index) ? "file:///usr/share/glacier-gallery/images/GridVideoThumbnail.jpg" | ||
: "image://nemoThumbnail/" + url) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (C) 2022-2023 Chupligin Sergey <[email protected]> | ||
* Copyright (C) 2022-2025 Chupligin Sergey <[email protected]> | ||
* | ||
* You may use this file under the terms of the BSD license as follows: | ||
* | ||
|
@@ -63,7 +63,7 @@ Item{ | |
anchors.centerIn: parent | ||
sourceSize.width: Theme.itemHeightLarge | ||
sourceSize.height: Theme.itemHeightLarge | ||
source: gallery.isVideo(url) ? "file:///usr/share/glacier-gallery/images/DefaultVideoThumbnail.jpg" : url | ||
source: gallery.isVideo(url) ? "file:///usr/share/glacier-gallery/images/DefaultVideoThumbnail.jpg" : "file://"+url | ||
fillMode: Image.PreserveAspectFit | ||
height: index === currentIndex ? parent.width : parent.width*0.8 | ||
width: parent.height | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Copyright (C) 2012 Andrea Bernabei <[email protected]> | ||
* Copyright (C) 2023 Chupligin Sergey <[email protected]> | ||
* Copyright (C) 2023-2025 Chupligin Sergey <[email protected]> | ||
* You may use this file under the terms of the BSD license as follows: | ||
* | ||
* "Redistribution and use in source and binary forms, with or without | ||
|
@@ -95,7 +95,7 @@ Item { | |
height: imgContainer.height | ||
fillMode: Image.PreserveAspectFit | ||
|
||
source: isVideo ? "file:///usr/share/glacier-gallery/images/DefaultVideoThumbnail.jpg" : imgContainer.source | ||
source: isVideo ? "file:///usr/share/glacier-gallery/images/DefaultVideoThumbnail.jpg" : "file://"+ imgContainer.source | ||
|
||
MouseArea { | ||
anchors.fill: parent | ||
|