Skip to content

Commit 830692f

Browse files
author
Lehonti Ramos
committed
Reverted most changes
1 parent a20c421 commit 830692f

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

.build/Build.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ protected override void OnBuildInitialized()
5252
string AssemblySemFileVer => GitVersion?.AssemblySemFileVer ?? "1.0.0";
5353

5454
// Define directories.
55-
static AbsolutePath FluentRibbonDirectory => RootDirectory / "Fluent.Ribbon";
55+
AbsolutePath FluentRibbonDirectory => RootDirectory / "Fluent.Ribbon";
5656

57-
static AbsolutePath BuildBinDirectory => RootDirectory / "bin";
57+
AbsolutePath BuildBinDirectory => RootDirectory / "bin";
5858

59-
static AbsolutePath ReferenceDataDir => RootDirectory / "ReferenceData";
59+
AbsolutePath ReferenceDataDir => RootDirectory / "ReferenceData";
6060

6161
[Parameter]
6262
readonly AbsolutePath ArtifactsDirectory = RootDirectory / "artifacts";
6363

64-
static AbsolutePath TestResultsDir => RootDirectory / "TestResults";
64+
AbsolutePath TestResultsDir => RootDirectory / "TestResults";
6565

6666
Target CleanOutput => _ => _
6767
.Executes(() =>

.build/ResourceKeys.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public ResourceKeys(params string[] sourceFiles)
5858
}
5959
}
6060

61-
static string BuildExpectedKey(string requiredPrefix, string key)
61+
string BuildExpectedKey(string requiredPrefix, string key)
6262
{
6363
return requiredPrefix + BuildKey(key).Replace("Fluent.Ribbon.", string.Empty);
6464

Fluent.Ribbon.Showcase/ViewModels/IssueRepros/ThemeManagerFromThread.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public ThemeManagerFromThread()
3030

3131
public RelayCommand StartStopCommand { get; set; }
3232

33-
private static void Info(string info)
33+
private void Info(string info)
3434
{
3535
Trace.WriteLine($@"{DateTime.Now} {info}");
3636
}
@@ -71,7 +71,7 @@ private void ThreadProc()
7171

7272
var newTheme = (ThemeColors)this.currentTheme;
7373

74-
ThemeManagerFromThread.Info("Changing theme to " + newTheme);
74+
this.Info("Changing theme to " + newTheme);
7575
this.ChangeTheme(newTheme);
7676

7777
this.currentTheme++;
@@ -90,11 +90,11 @@ private void ChangeTheme(ThemeColors themeColor)
9090
{
9191
ThemeManager.Current.ChangeTheme(Application.Current, newTheme);
9292

93-
ThemeManagerFromThread.Info($"Change theme: NewTheme: {newTheme.Name} Theme changed.");
93+
this.Info($"Change theme: NewTheme: {newTheme.Name} Theme changed.");
9494
}
9595
else
9696
{
97-
ThemeManagerFromThread.Info($"Change theme: Theme not found: {themeColor}.");
97+
this.Info($"Change theme: Theme not found: {themeColor}.");
9898
}
9999
}
100100
}
@@ -104,12 +104,12 @@ private void ThemeManagerThemeChangedHandler(object sender, ThemeChangedEventArg
104104
try
105105
{
106106
var theme = ThemeManager.Current.DetectTheme(Application.Current);
107-
ThemeManagerFromThread.Info($"Current theme from args: {e.NewTheme.Name}");
108-
ThemeManagerFromThread.Info($"Current theme from detection: {theme.Name}");
107+
this.Info($"Current theme from args: {e.NewTheme.Name}");
108+
this.Info($"Current theme from detection: {theme.Name}");
109109
}
110110
catch (Exception ex)
111111
{
112-
ThemeManagerFromThread.Info(ex.Message);
112+
this.Info(ex.Message);
113113
}
114114
}
115115
}

Fluent.Ribbon/Controls/RibbonGroupBoxWrapPanel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ internal UvSize(Orientation orientation)
199199

200200
internal double U;
201201
internal double V;
202-
private readonly Orientation orientation;
202+
private Orientation orientation;
203203

204204
internal double Width
205205
{

Fluent.Ribbon/Effects/GrayscaleEffect.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ public class GrayscaleEffect : ShaderEffect
2727
/// </summary>
2828
public GrayscaleEffect()
2929
{
30-
this.PixelShader = GrayscaleEffect.CreatePixelShader();
30+
this.PixelShader = this.CreatePixelShader();
3131

3232
this.UpdateShaderValue(InputProperty);
3333
this.UpdateShaderValue(FilterColorProperty);
3434
}
3535

36-
private static PixelShader CreatePixelShader()
36+
private PixelShader CreatePixelShader()
3737
{
3838
var pixelShader = new PixelShader { UriSource = new Uri("pack://application:,,,/Fluent;component/Themes/Effects/Grayscale.ps", UriKind.RelativeOrAbsolute) };
3939

Fluent.Ribbon/Services/KeyTipService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ private void ClearUserInput()
415415
this.currentUserInput = string.Empty;
416416
}
417417

418-
private static void ClosePopups()
418+
private void ClosePopups()
419419
{
420420
PopupService.RaiseDismissPopupEvent(Keyboard.FocusedElement, DismissPopupMode.Always, DismissPopupReason.ShowingKeyTips);
421421
}
@@ -438,7 +438,7 @@ private void OnAdornerChainTerminated(object? sender, KeyTipPressedResult e)
438438

439439
if (e.PressedElementOpenedPopup == false)
440440
{
441-
KeyTipService.ClosePopups();
441+
this.ClosePopups();
442442
}
443443

444444
if (e.PressedElementAquiredFocus == false)
@@ -500,7 +500,7 @@ private void Show()
500500
return;
501501
}
502502

503-
KeyTipService.ClosePopups();
503+
this.ClosePopups();
504504

505505
this.backUpFocusedControl = null;
506506

0 commit comments

Comments
 (0)