Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nheko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
nheko
Commits
53c73c21
Verified
Commit
53c73c21
authored
3 years ago
by
Joe Donofry
Browse files
Options
Downloads
Patches
Plain Diff
Fix some minor UI issues with ImageOverlay and RawMessageDialog
parent
8d52c17f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#2475
failed
3 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
resources/qml/dialogs/ImageOverlay.qml
+25
-24
25 additions, 24 deletions
resources/qml/dialogs/ImageOverlay.qml
resources/qml/dialogs/RawMessageDialog.qml
+2
-0
2 additions, 0 deletions
resources/qml/dialogs/RawMessageDialog.qml
with
27 additions
and
24 deletions
resources/qml/dialogs/ImageOverlay.qml
+
25
−
24
View file @
53c73c21
...
...
@@ -44,6 +44,7 @@ Window {
fillMode
:
Image
.
PreserveAspectFit
smooth
:
true
mipmap
:
true
property
bool
loaded
:
status
==
Image
.
Ready
}
MxcAnimatedImage
{
...
...
@@ -57,30 +58,30 @@ Window {
}
BoundaryRule
on
scale
{
enabled
:
img
.
loaded
enabled
:
img
.
loaded
||
mxcimage
.
loaded
id
:
sbr
minimum
:
0.1
maximum
:
10
0
minimumOvershoot
:
0.02
;
maximumOvershoot
:
10
0
maximum
:
10
minimumOvershoot
:
0.02
;
maximumOvershoot
:
10
.02
}
//
BoundaryRule on x {
//
enabled: img.loaded
//
id: xbr
//
minimum: -100
//
maximum: imageOverlay.width - img.width + 100
//
minimumOvershoot: 100; maximumOvershoot: 100
//
overshootFilter: BoundaryRule.Peak
//
}
//
BoundaryRule on y {
//
enabled: img.loaded
//
id: ybr
//
minimum: -100
//
maximum: imageOverlay.height - img.height + 100
//
minimumOvershoot: 100; maximumOvershoot: 100
//
overshootFilter: BoundaryRule.Peak
//
}
BoundaryRule
on
x
{
enabled
:
img
.
loaded
||
mxcimage
.
loaded
id
:
xbr
minimum
:
-
100
maximum
:
imageOverlay
.
width
-
img
.
width
+
100
minimumOvershoot
:
100
;
maximumOvershoot
:
100
overshootFilter
:
BoundaryRule
.
Peak
}
BoundaryRule
on
y
{
enabled
:
img
.
loaded
||
mxcimage
.
loaded
id
:
ybr
minimum
:
-
100
maximum
:
imageOverlay
.
height
-
img
.
height
+
100
minimumOvershoot
:
100
;
maximumOvershoot
:
100
overshootFilter
:
BoundaryRule
.
Peak
}
PinchHandler
{
onActiveChanged
:
if
(
!
active
)
sbr
.
returnToBounds
();
...
...
@@ -92,10 +93,10 @@ Window {
}
DragHandler
{
//
onActiveChanged: if (!active) {
//
xbr.returnToBounds();
//
ybr.returnToBounds();
//
}
onActiveChanged
:
if
(
!
active
)
{
xbr
.
returnToBounds
();
ybr
.
returnToBounds
();
}
}
HoverHandler
{
...
...
This diff is collapsed.
Click to expand it.
resources/qml/dialogs/RawMessageDialog.qml
+
2
−
0
View file @
53c73c21
...
...
@@ -38,6 +38,8 @@ ApplicationWindow {
readOnly
:
true
textFormat
:
Text
.
PlainText
anchors.fill
:
parent
background
:
Rectangle
{
color
:
Nheko
.
colors
.
base
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment