Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: buchizo/ClaudiaIDE
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: Release3.1.35
Choose a base ref
...
head repository: buchizo/ClaudiaIDE
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: Release3.1.36
Choose a head ref
  • 4 commits
  • 6 files changed
  • 2 contributors

Commits on Feb 27, 2024

  1. Copy the full SHA
    0ae902c View commit details

Commits on Feb 29, 2024

  1. Merge pull request #190 from OrionFOTL/bugfix/max-width-height-for-sl…

    …ideshow
    
    Fixed MaxWidth and MaxHeight settings for Slideshow
    buchizo authored Feb 29, 2024
    Copy the full SHA
    5e5677f View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b8cd72f View commit details
  3. Merge pull request #192 from buchizo/maxWidth-and-maxHeight-settings-…

    …for-other-providers
    
    Fixed MaxWidth and MaxHeight settings for other providers
    buchizo authored Feb 29, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    bhiravabhatla Santosh Kumar Bhiravabhatla
    Copy the full SHA
    3475544 View commit details
4 changes: 2 additions & 2 deletions ClaudiaIDE/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="ClaudiaIDE..7442ac19-889b-4699-a817-e6e054877ee3" Version="3.1.35" Language="en-US" Publisher="buchizo" />
<Identity Id="ClaudiaIDE..7442ac19-889b-4699-a817-e6e054877ee3" Version="3.1.36" Language="en-US" Publisher="buchizo" />
<DisplayName>ClaudiaIDE</DisplayName>
<Description xml:space="preserve">This extension change the background image of editor.</Description>
<MoreInfo>https://github.com/buchizo/ClaudiaIDE</MoreInfo>
2 changes: 1 addition & 1 deletion ClaudiaIDE16/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="ClaudiaIDE2019.9ab800ef-0cff-4893-bf16-57d58ff53456" Version="3.1.35" Language="en-US" Publisher="k.buchi" />
<Identity Id="ClaudiaIDE2019.9ab800ef-0cff-4893-bf16-57d58ff53456" Version="3.1.36" Language="en-US" Publisher="k.buchi" />
<DisplayName>ClaudiaIDE 2019</DisplayName>
<Description xml:space="preserve">This extension change the background image of editor.</Description>
<MoreInfo>https://github.com/buchizo/ClaudiaIDE</MoreInfo>
2 changes: 1 addition & 1 deletion Shared/ClaudiaIdePackage.cs
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@
namespace ClaudiaIDE
{
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
[InstalledProductRegistration("#110", "#112", "3.1.35", IconResourceID = 400)]
[InstalledProductRegistration("#110", "#112", "3.1.36", IconResourceID = 400)]
[ProvideOptionPage(typeof(ClaudiaIdeOptionPageGrid), "ClaudiaIDE", "Light theme", 110, 116, true)]
[ProvideOptionPage(typeof(ClaudiaIdeDarkThemeOptionPageGrid), "ClaudiaIDE", "Dark theme", 110, 117, true)]
[ProvideOptionPage(typeof(ClaudiaIdeGeneralOptionPageGrid), "ClaudiaIDE", "General", 110, 118, true)]
2 changes: 2 additions & 0 deletions Shared/ImageProviders/SingleImageEachProvider.cs
Original file line number Diff line number Diff line change
@@ -69,6 +69,8 @@ public override BitmapSource GetBitmap()
(bitmap.Width != bitmap.PixelWidth || bitmap.Height != bitmap.PixelHeight)
)
ret_bitmap = Utils.ConvertToDpi96(bitmap);
else
ret_bitmap = bitmap;

if (Setting.SoftEdgeX > 0 || Setting.SoftEdgeY > 0)
ret_bitmap = Utils.SoftenEdges(ret_bitmap ?? bitmap, Setting.SoftEdgeX, Setting.SoftEdgeY);
3 changes: 3 additions & 0 deletions Shared/ImageProviders/SingleImageProvider.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Windows.Media.Imaging;
@@ -75,6 +76,8 @@ private void LoadImage()
(_bitmap.Width != _bitmap.PixelWidth || _bitmap.Height != _bitmap.PixelHeight)
)
ret_bitmap = Utils.ConvertToDpi96(_bitmap);
else
ret_bitmap = _bitmap;

if (Setting.SoftEdgeX > 0 || Setting.SoftEdgeY > 0)
ret_bitmap = Utils.SoftenEdges(ret_bitmap ?? _bitmap, Setting.SoftEdgeX, Setting.SoftEdgeY);
4 changes: 3 additions & 1 deletion Shared/ImageProviders/SlideShowImageProvider.cs
Original file line number Diff line number Diff line change
@@ -96,13 +96,15 @@ public override BitmapSource GetBitmap()
return GetBitmap();
}


BitmapSource ret_bitmap = bitmap;
if (Setting.ImageStretch == ImageStretch.None)
{
bitmap = Utils.EnsureMaxWidthHeight(bitmap, Setting.MaxWidth, Setting.MaxHeight);

if (bitmap.Width != bitmap.PixelWidth || bitmap.Height != bitmap.PixelHeight)
ret_bitmap = Utils.ConvertToDpi96(bitmap);
else
ret_bitmap = bitmap;
}

if (Setting.SoftEdgeX > 0 || Setting.SoftEdgeY > 0)