-
Posts
1,782 -
Joined
-
Last visited
-
Days Won
26
Posts posted by midora
-
-
-
It would be easier to add an image which fails. There are too many ora variations possible.
-
Embedded means the file contains the color profile as opposed to that the color profile is stored in a separate file or does not exist at all.
-
-
Did you check that Menu->Image->Resize... shows 72dpi? As long as the source file contains a valid dpi value you should see it there.
-
VS proposes to use a switch expression
var cipn = property switch
{
BooleanProperty or UriProperty => ControlInfoPropertyNames.Footnote,
_ => ControlInfoPropertyNames.Description,
};I guess I should take the time to have a look to all the new c# features.
But on the other side I have to debug now Xamarin code on iOS and should not forget the old stuff 😉
-
I was surprised that switch allows to test for a class type...
public void SetPropertyDescription(Property property) { ControlInfoPropertyNames cipn; switch (property) { case BooleanProperty: case UriProperty: cipn = ControlInfoPropertyNames.Footnote; break; default: cipn = ControlInfoPropertyNames.Description; break; } var descriptionText = Context.MapKeyToText(property.Name + ".Description", ""); Info.SetPropertyControlValue(property.Name, cipn, descriptionText); }
-
Because I did a mistake...
-
Because ControlInfoPropertyNames.Description is used to set the text of the UriProperty allow ControlInfoPropertyNames.Footnote (as used by BooleanProperty).
Or maybe allow Footnote for all properties (in addition to Description just o be consistent).
In general I would prefer that .ButtonText sets the text of BooleanProperty and UriProperty and Description would only be used for the description. But it's a little bit late now 😉
-
As long as you can get different colors for the active and inactive window title bar.
If the only difference is the thin window border color then it's really bad.
-
One issue is the width of the popup. The other one the overall width of the control panel.
-
The width of the dialog controls is fixed for all save plugins. But terms like 'unsigned' could be abbreviated.
-
You have to write your own thumbnail shell extension for the file type and install it.
- 1
-
I'm getting analyzer warnings like the following one. TargetFramework is net6.0-windows and VS is up-to-date. Any idea?
Warning CS8032 An instance of analyzer System.Text.Json.SourceGeneration.JsonSourceGenerator cannot be created from C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\6.0.2\analyzers\dotnet\cs\System.Text.Json.SourceGeneration.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..That's a PropertyBasedEffect plugin.
-
@Kamikazeyour wording is kamikaze. You are using free software.
- 3
- 1
-
Just to say, in the moment I'm using the above 'feature' to detect the 'DialogResult'.
I know that's a bad way to do it and I would prefer to get a clean solution for PropertyBasedEffects.
Maybe a virtual method OnConfigClosed( DialogResult result ) or OnConfigClosed( PropertyBasedEffectConfigToken finalToken, DialogResult result ).
BTW: For Tools Effects I would like to get EffectRenderingSchedule.DoNotRender 😉 Means there should be OnSetRenderInfo but no OnRender
-
That's worth two 🍺🍺 @toe_head2001. So let's 🍻. I will check it out with the new 4.3.8 beta.
-
Is the OnSetRenderInfo call after clicking OK intentional? There are no following OnRender calls...
It doesn't hurt but I'm curious 😉
-
Layer names must not be unique. So 'Import From File' has no issue with the names. If the imprted image is larger than the current one then the canvas will be resized to fit both images.
-
I will provide a 🍺 to the one taking the challenge 😉
-
There is a PropertyControlType.FileChooser but sometimes you need just a folder so maybe PropertyControlType.FolderChooser would be useful.
-
Save the effect in the Effect folder.
'Effects/Tools/Watch and Zip' allows you to set the folder to watch.
All .pdn files in this folder (and all subfolders) will be zipped on file create and on file change while paint.net is running.
-
55 minutes ago, Peter1 said:
Is it robust against future changes in the PDN contents?
If Rick decides to store more information in the pdn file then the plugin must be adapted (no surprise).
You may also save as .ora that's zip based too.
You can also save as pdn in a watched folder and write a script which reacts on changes to the folder and copies away a zipped file. You can also create diff files this way.
-
4 hours ago, Rick Brewster said:
I'll look at this for 4.3.8. It could be super easy to squeeze in, but if there's much risk involved then I'd want to delay it to 4.4 so it could get a full range of testing (alpha, beta, etc.). Sometimes adding a keyboard command means it can be easy for it to overlap with other commands and cause weird behavior or crashes, but that's not always the case.
Please have in mind that there are different keyboard layouts. I's already an issue that ctrl++ is not working on a lot of keyboards.
Supporting special characters should always be implemented by figuring out which key combination produces the key on the current keyboard layout. That's not so difficult.
'What's It?' Tools Effect Plugin [Latest v1.1 2022-03-24]
in Plugins - Publishing ONLY!
Posted
Will check if there is an easy fix.