-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
65 changed files
with
11,199 additions
and
791 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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="" 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="" 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> |
Oops, something went wrong.