Skip to content

Commit

Permalink
SLBr 2022.4.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SLT-World committed Apr 4, 2022
1 parent 43d0ee5 commit f0f3dbc
Show file tree
Hide file tree
Showing 65 changed files with 11,199 additions and 791 deletions.
1,346 changes: 1,346 additions & 0 deletions SLBr/Icon Designs/IconDesign1.ai

Large diffs are not rendered by default.

Binary file added SLBr/Icon Designs/IconDesign1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,363 changes: 1,363 additions & 0 deletions SLBr/Icon Designs/IconDesign1West.ai

Large diffs are not rendered by default.

1,396 changes: 1,396 additions & 0 deletions SLBr/Icon Designs/IconDesign2.ai

Large diffs are not rendered by default.

Binary file added SLBr/Icon Designs/IconDesign2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,416 changes: 1,416 additions & 0 deletions SLBr/Icon Designs/IconDesign3.ai

Large diffs are not rendered by default.

Binary file added SLBr/Icon Designs/IconDesign3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,420 changes: 1,420 additions & 0 deletions SLBr/Icon Designs/IconDesign4.ai

Large diffs are not rendered by default.

Binary file added SLBr/Icon Designs/IconDesign4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,493 changes: 1,493 additions & 0 deletions SLBr/Icon Designs/IconDesign5.ai

Large diffs are not rendered by default.

Binary file added SLBr/Icon Designs/IconDesign5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added SLBr/Icon Designs/SLBr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions SLBr/SLBr Lite/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
</configuration>
9 changes: 9 additions & 0 deletions SLBr/SLBr Lite/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Application x:Class="SLBr_Lite.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:SLBr_Lite"
StartupUri="MainWindow.xaml">
<Application.Resources>

</Application.Resources>
</Application>
17 changes: 17 additions & 0 deletions SLBr/SLBr Lite/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace SLBr_Lite
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}
33 changes: 33 additions & 0 deletions SLBr/SLBr Lite/LifeSpanHandler.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using CefSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SLBr_Lite
{
class LifeSpanHandler : ILifeSpanHandler
{
public bool DoClose(IWebBrowser chromiumWebBrowser, IBrowser browser)
{
return false;
}

public void OnAfterCreated(IWebBrowser chromiumWebBrowser, IBrowser browser)
{
}

public void OnBeforeClose(IWebBrowser chromiumWebBrowser, IBrowser browser)
{
}

public bool OnBeforePopup(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, string targetUrl, string targetFrameName, WindowOpenDisposition targetDisposition, bool userGesture, IPopupFeatures popupFeatures, IWindowInfo windowInfo, IBrowserSettings browserSettings, ref bool noJavascriptAccess, out IWebBrowser newBrowser)
{
//Program.Form.Invoke(new Action(() => Program.Form.newPage(targetUrl)));
browser.MainFrame.LoadUrl(targetUrl);
newBrowser = null;
return true;
}
}
}
28 changes: 28 additions & 0 deletions SLBr/SLBr Lite/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<Window x:Class="SLBr_Lite.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:SLBr_Lite" xmlns:wpf="clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf"
mc:Ignorable="d"
Title="SLBr Lite" Height="450" Width="800" ResizeMode="CanMinimize">
<Window.Resources>
<ResourceDictionary Source="ResourceDictionary.xaml"/>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition/>
</Grid.RowDefinitions>

<Border BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,0,0,1">
<DockPanel>
<Button x:Name="BackButton" FontFamily="Segoe MDL2 Assets" Style="{DynamicResource AddButton}" ToolTip="Back" Content="&#xE72B;" Margin="5,0,0,0" Height="23" Width="23" Foreground="{DynamicResource ControlFontBrush}" Click="BackButton_Click"/>
<Button x:Name="ForwardButton" FontFamily="Segoe MDL2 Assets" Style="{DynamicResource AddButton}" ToolTip="Forward" Content="&#xE72A;" Margin="0" Height="23" Width="23" Foreground="{DynamicResource ControlFontBrush}" Click="ForwardButton_Click"/>
<Image x:Name="WebsiteFavicon" DockPanel.Dock="Right" Width="23" Margin="0,5,5,5"/>
<TextBox x:Name="AddressBox" Margin="5" Height="23" Width="auto" FontFamily="arial" Padding="0,1,0,0" KeyDown="AddressBox_KeyDown" GotFocus="AddressBox_GotFocus" LostFocus="AddressBox_LostFocus" MouseEnter="AddressBox_MouseEnter" MouseLeave="AddressBox_MouseLeave" Tag="Loading..."/>
</DockPanel>
</Border>
<wpf:ChromiumWebBrowser x:Name="Browser" Address="https://google.com/" Grid.Row="1" LoadingStateChanged="Browser_LoadingStateChanged" FrameLoadEnd="Browser_FrameLoadEnd" AddressChanged="Browser_AddressChanged"/>
</Grid>
</Window>
Loading

0 comments on commit f0f3dbc

Please sign in to comment.