Skip to content

Commit 0998b6a

Browse files
authored
Merge pull request LykosAI#938 from ionite34/backport/main/pr-937
[dev to main] backport: Fix Inference image select card buttons taking up the whole height (937)
2 parents 62243d8 + 25ca06d commit 0998b6a

File tree

2 files changed

+28
-18
lines changed

2 files changed

+28
-18
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to Stability Matrix will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2.0.0.html).
77

8+
## v2.13.1
9+
### Fixed
10+
- Fixed Inference image selector card buttons taking up the whole height of the card
11+
812
## v2.13.0
913
### Added
1014
- Added new package - [ComfyUI-Zluda](https://github.com/patientx/ComfyUI-Zluda) - for AMD GPU users on Windows

StabilityMatrix.Avalonia/Controls/Inference/SelectImageCard.axaml

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
Source="{Binding ImageSource}"
4949
Stretch="Uniform"
5050
StretchDirection="Both" />
51-
51+
5252
<!-- Overlay Image -->
5353
<Panel>
5454
<Panel.IsVisible>
@@ -57,13 +57,13 @@
5757
<CompiledBinding Path="IsMaskOverlayEnabled" />
5858
</MultiBinding>
5959
</Panel.IsVisible>
60-
<controls:BetterImage
60+
<controls:BetterImage
6161
VerticalAlignment="Stretch"
62-
Stretch="Uniform"
63-
StretchDirection="Both"
64-
RenderOptions.BitmapInterpolationMode="HighQuality"
6562
DataContext="{Binding MaskEditorViewModel}"
66-
Source="{Binding CachedOrNewMaskRenderImage.Bitmap}"/>
63+
RenderOptions.BitmapInterpolationMode="HighQuality"
64+
Source="{Binding CachedOrNewMaskRenderImage.Bitmap}"
65+
Stretch="Uniform"
66+
StretchDirection="Both" />
6767
</Panel>
6868

6969
<!-- Missing image -->
@@ -102,16 +102,18 @@
102102
<!-- Active Selection Prompt -->
103103
<StackPanel
104104
Margin="4"
105-
Spacing="4"
106-
Orientation="Horizontal"
107105
HorizontalAlignment="Right"
108106
VerticalAlignment="Top"
109-
IsVisible="{Binding !IsSelectionAvailable}">
110-
<!-- Mask Overlay Toggle -->
107+
IsVisible="{Binding !IsSelectionAvailable}"
108+
Orientation="Horizontal"
109+
Spacing="4">
110+
<!-- Mask Overlay Toggle -->
111111
<Border
112-
IsVisible="{Binding IsMaskEditorEnabled}"
112+
Width="40"
113+
Height="40"
113114
BoxShadow="inset 1.2 0 80 1.8 #66000000"
114-
CornerRadius="10">
115+
CornerRadius="10"
116+
IsVisible="{Binding IsMaskEditorEnabled}">
115117
<Border.Resources>
116118
<DropShadowEffect
117119
x:Key="TextDropShadowEffect"
@@ -126,9 +128,9 @@
126128
</Border.Resources>
127129
<ToggleButton
128130
Padding="2"
129-
IsChecked="{Binding IsMaskOverlayEnabled}"
130131
CornerRadius="10"
131-
FontSize="{TemplateBinding FontSize}">
132+
FontSize="{TemplateBinding FontSize}"
133+
IsChecked="{Binding IsMaskOverlayEnabled}">
132134
<ToolTip.Tip>
133135
<MultiBinding StringFormat="{}{0} - {1}">
134136
<CompiledBinding Source="{x:Static lang:Resources.Label_ClippingMask}" />
@@ -142,11 +144,13 @@
142144
Symbol="Eye" />
143145
</ToggleButton>
144146
</Border>
145-
<!-- Mask Editor -->
147+
<!-- Mask Editor -->
146148
<Border
147-
IsVisible="{Binding IsMaskEditorEnabled}"
149+
Width="40"
150+
Height="40"
148151
BoxShadow="inset 1.2 0 80 1.8 #66000000"
149-
CornerRadius="10">
152+
CornerRadius="10"
153+
IsVisible="{Binding IsMaskEditorEnabled}">
150154
<Border.Resources>
151155
<DropShadowEffect
152156
x:Key="TextDropShadowEffect"
@@ -178,8 +182,10 @@
178182
Symbol="Layer" />
179183
</Button>
180184
</Border>
181-
<!-- Replace Contents -->
185+
<!-- Replace Contents -->
182186
<Border
187+
Width="40"
188+
Height="40"
183189
BoxShadow="inset 1.2 0 80 1.8 #66000000"
184190
CornerRadius="10">
185191
<Border.Resources>

0 commit comments

Comments
 (0)