18 Commits

Author SHA1 Message Date
Booker
bc7d125801 Merge branch 'master' into 2.4.15 2022-05-26 17:21:14 +08:00
Booker
bf5a6da448 Update Update.json 2022-05-26 16:23:17 +08:00
Booker
2d2f1672dd Merge pull request #39 from Demo-Liu/2.4.14
修改正确的版本号
2022-04-20 17:34:53 +08:00
Booker
072985d2b6 Merge pull request #38 from Demo-Liu/2.4.14
2.4.14
2022-04-20 17:13:40 +08:00
Booker
e5f1368c8b Update README.md 2022-03-01 21:48:55 +08:00
Booker
89ebbbed78 Update README.md 2022-03-01 21:44:40 +08:00
Booker
c1d6aec622 Update README.md 2022-03-01 20:53:56 +08:00
Booker
fbcd55b586 Update README.md 2022-01-27 15:43:24 +08:00
Demo-Liu
9053f4c25b Merge pull request #33 from Demo-Liu/2.4.12
2.4.12
2022-01-13 09:57:48 +08:00
Demo-Liu
13fbacba40 Merge pull request #32 from Demo-Liu/2.4.11
2.4.11
2022-01-10 19:08:14 +08:00
Demo-Liu
dee1caa435 Update README.md 2022-01-07 20:50:49 +08:00
Demo-Liu
dedf20528f Update README.md 2022-01-07 20:48:17 +08:00
Demo-Liu
33b9d3af42 Update README.md 2022-01-07 20:46:36 +08:00
Demo-Liu
4f59c2c64d Merge pull request #29 from Demo-Liu/2.3.21
修改编码
2021-12-20 16:52:51 +08:00
Demo-Liu
701734e048 Merge pull request #28 from Demo-Liu/2.3.21
2.3.21
2021-12-20 16:47:05 +08:00
Demo-Liu
78b685c9ed Update README.md
新版截图
2021-12-15 17:02:04 +08:00
Demo-Liu
746eda8b84 Merge pull request #27 from Demo-Liu/2.3.20
2.3.20
2021-12-13 12:18:48 +08:00
Demo-Liu
b4215fb27d Merge pull request #26 from Demo-Liu/2.3.20
2.3.20
2021-12-13 11:16:56 +08:00
9 changed files with 91 additions and 98 deletions

View File

@@ -49,7 +49,7 @@
</assemblyBinding> </assemblyBinding>
</runtime> </runtime>
<appSettings> <appSettings>
<add key="Version" value="2.4.16" /> <add key="Version" value="2.4.15" />
<add key="GitHubUrl" value="https://github.com/BookerLiu/GeekDesk" /> <add key="GitHubUrl" value="https://github.com/BookerLiu/GeekDesk" />
<add key="GiteeUrl" value="https://gitee.com/BookerLiu/GeekDesk/tree/master" /> <add key="GiteeUrl" value="https://gitee.com/BookerLiu/GeekDesk/tree/master" />
<add key="GitHubUpdateUrl" value="https://raw.githubusercontent.com/BookerLiu/GeekDesk/master/Update.json" /> <add key="GitHubUpdateUrl" value="https://raw.githubusercontent.com/BookerLiu/GeekDesk/master/Update.json" />

View File

@@ -18,12 +18,11 @@
<Setter Property="Margin" Value="0,0,0,1"/> <Setter Property="Margin" Value="0,0,0,1"/>
<Setter Property="Background"> <Setter Property="Background">
<Setter.Value> <Setter.Value>
<SolidColorBrush Color="Black" Opacity="0.01"/> <SolidColorBrush Opacity="0"/>
</Setter.Value> </Setter.Value>
</Setter> </Setter>
<Setter Property="FocusVisualStyle" Value="{x:Null}" /> <Setter Property="FocusVisualStyle" Value="{x:Null}" />
<EventSetter Event="MouseEnter" Handler="Menu_MouseEnter"/> <EventSetter Event="MouseEnter" Handler="Menu_MouseEnter"/>
<EventSetter Event="PreviewMouseLeftButtonDown" Handler="ListBoxItem_MouseDown"/>
<!--<EventSetter Event="Unselected" Handler="Lbi_Unselected"/>--> <!--<EventSetter Event="Unselected" Handler="Lbi_Unselected"/>-->
<Style.Triggers> <Style.Triggers>
<MultiTrigger> <MultiTrigger>
@@ -46,11 +45,7 @@
</BeginStoryboard> </BeginStoryboard>
</MultiTrigger.ExitActions> </MultiTrigger.ExitActions>
<MultiTrigger.Setters> <MultiTrigger.Setters>
<Setter Property="Background"> <Setter Property="Background" Value="Transparent"/>
<Setter.Value>
<SolidColorBrush Color="Black" Opacity="0.01"/>
</Setter.Value>
</Setter>
<Setter Property="Foreground" Value="Black"/> <Setter Property="Foreground" Value="Black"/>
</MultiTrigger.Setters> </MultiTrigger.Setters>
</MultiTrigger> </MultiTrigger>
@@ -138,7 +133,7 @@
<ListBox.ItemTemplate> <ListBox.ItemTemplate>
<DataTemplate> <DataTemplate>
<StackPanel Tag="{Binding}"> <StackPanel Tag="{Binding}" MouseDown="ListBoxItem_MouseDown">
<TextBox Text="{Binding Path=MenuName, Mode=TwoWay}" <TextBox Text="{Binding Path=MenuName, Mode=TwoWay}"
HorizontalAlignment="Left" HorizontalAlignment="Left"
Width="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type ListBox},AncestorLevel=1},Path=Tag, Mode=TwoWay, Converter={StaticResource MenuWidthConvert}, ConverterParameter=35}" Width="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type ListBox},AncestorLevel=1},Path=Tag, Mode=TwoWay, Converter={StaticResource MenuWidthConvert}, ConverterParameter=35}"

View File

@@ -25,7 +25,7 @@ namespace GeekDesk.Control.UserControls.PannelCard
//是否正在修改菜单 //是否正在修改菜单
public bool IS_EDIT = false; private static bool IS_EDIT = false;
public LeftCardControl() public LeftCardControl()
{ {
@@ -205,9 +205,9 @@ namespace GeekDesk.Control.UserControls.PannelCard
/// <param name="e"></param> /// <param name="e"></param>
private void RenameMenu(object sender, RoutedEventArgs e) private void RenameMenu(object sender, RoutedEventArgs e)
{ {
IS_EDIT = true;
MenuInfo menuInfo = ((MenuItem)sender).Tag as MenuInfo; MenuInfo menuInfo = ((MenuItem)sender).Tag as MenuInfo;
menuInfo.MenuEdit = (int)Visibility.Visible; menuInfo.MenuEdit = (int)Visibility.Visible;
IS_EDIT = true;
} }
/// <summary> /// <summary>
@@ -276,8 +276,6 @@ namespace GeekDesk.Control.UserControls.PannelCard
menuInfo.MenuEdit = Visibility.Collapsed; menuInfo.MenuEdit = Visibility.Collapsed;
} }
IS_EDIT = false; IS_EDIT = false;
//为了解决无法修改菜单的问题
MainWindow.mainWindow.SearchBox.Focus();
MenuListBox.SelectedIndex = menuSelectIndexTemp; MenuListBox.SelectedIndex = menuSelectIndexTemp;
} }
} }
@@ -311,7 +309,6 @@ namespace GeekDesk.Control.UserControls.PannelCard
private void Menu_SelectionChanged(object sender, SelectionChangedEventArgs e) private void Menu_SelectionChanged(object sender, SelectionChangedEventArgs e)
{ {
if (IS_EDIT) return;
//设置对应菜单的图标列表 //设置对应菜单的图标列表
if (MenuListBox.SelectedIndex == -1) if (MenuListBox.SelectedIndex == -1)
{ {
@@ -362,31 +359,8 @@ namespace GeekDesk.Control.UserControls.PannelCard
{ {
MainWindow.mainWindow.HidedSearchBox(); MainWindow.mainWindow.HidedSearchBox();
} }
ListBoxItem lbi = sender as ListBoxItem;
MenuInfo mi = lbi.DataContext as MenuInfo;
int index = MenuListBox.Items.IndexOf(mi);
MenuListBox.SelectedIndex = index;
} }
///// <summary>
///// 点击菜单后 隐藏搜索框
///// </summary>
///// <param name="sender"></param>
///// <param name="e"></param>
//private void ListBoxItemPanel_MouseDown(object sender, MouseButtonEventArgs e)
//{
// if (RunTimeStatus.SEARCH_BOX_SHOW)
// {
// MainWindow.mainWindow.HidedSearchBox();
// }
// MenuInfo mi = (sender as StackPanel).Tag as MenuInfo;
// int index = MenuListBox.Items.IndexOf(mi);
// MenuListBox.SelectedIndex = index;
//}
/// <summary> /// <summary>
/// 隐藏搜索框 /// 隐藏搜索框
/// </summary> /// </summary>

View File

@@ -81,25 +81,15 @@ namespace GeekDesk.Control.Windows
if (window == null || !window.Activate()) if (window == null || !window.Activate())
{ {
window = new GlobalColorPickerWindow(); window = new GlobalColorPickerWindow();
window.Opacity = 0;
App.DoEvents();
window.Show(); window.Show();
} }
window.Hide(); window.Hide();
new Thread(() => GlobalColorPickerWindow thisWindow = (GlobalColorPickerWindow)window;
if (thisWindow.colorPickerWindow == null || !thisWindow.colorPickerWindow.Activate())
{ {
Thread.Sleep(200); thisWindow.colorPickerWindow = new PixelColorPickerWindow(thisWindow.MyColorPicker);
App.Current.Dispatcher.Invoke(() => }
{ thisWindow.colorPickerWindow.Show();
GlobalColorPickerWindow thisWindow = (GlobalColorPickerWindow)window;
if (thisWindow.colorPickerWindow == null || !thisWindow.colorPickerWindow.Activate())
{
thisWindow.colorPickerWindow = new PixelColorPickerWindow(thisWindow.MyColorPicker);
}
thisWindow.colorPickerWindow.Show();
});
}).Start();
} }
public static void Show() public static void Show()
@@ -108,7 +98,6 @@ namespace GeekDesk.Control.Windows
{ {
window = new GlobalColorPickerWindow(); window = new GlobalColorPickerWindow();
} }
window.Opacity = 1;
window.Show(); window.Show();
Keyboard.Focus(window); Keyboard.Focus(window);
} }

View File

@@ -125,7 +125,7 @@
</DockPanel> </DockPanel>
<uc:LeftCardControl x:Name="LeftCard" Grid.Row="1" Grid.Column="0"/> <uc:LeftCardControl Grid.Row="1" Grid.Column="0"/>
<!--分割线--> <!--分割线-->
<GridSplitter Opacity="0" Grid.Row="1" Grid.Column="0" Width="1" VerticalAlignment="Stretch" HorizontalAlignment="Right"/> <GridSplitter Opacity="0" Grid.Row="1" Grid.Column="0" Width="1" VerticalAlignment="Stretch" HorizontalAlignment="Right"/>
@@ -141,9 +141,11 @@
TextChanged="SearchBox_TextChanged" TextChanged="SearchBox_TextChanged"
/> />
<uc:RightCardControl x:Name="RightCard" Grid.Row="1" Grid.Column="1"/>
<hc:NotifyIcon Icon="/Taskbar.ico" Click="NotifyIcon_Click" x:Name="BarIcon" <hc:NotifyIcon Icon="/Taskbar.ico" Click="NotifyIcon_Click" x:Name="BarIcon"
Visibility="{Binding AppConfig.ShowBarIcon, Mode=TwoWay, Converter={StaticResource Boolean2VisibilityConverter}}"> MouseRightButtonDown="BarIcon_MouseRightButtonDown"
Visibility="{Binding AppConfig.ShowBarIcon, Mode=TwoWay, Converter={StaticResource Boolean2VisibilityConverter}}">
<hc:NotifyIcon.ContextMenu> <hc:NotifyIcon.ContextMenu>
<ContextMenu Width="130" x:Name="TaskbarContextMenu"> <ContextMenu Width="130" x:Name="TaskbarContextMenu">
<MenuItem Header="打开面板" Click="ShowApp"/> <MenuItem Header="打开面板" Click="ShowApp"/>
@@ -156,10 +158,8 @@
<MenuItem Header="退出" Click="ExitApp"/> <MenuItem Header="退出" Click="ExitApp"/>
</ContextMenu> </ContextMenu>
</hc:NotifyIcon.ContextMenu> </hc:NotifyIcon.ContextMenu>
</hc:NotifyIcon> </hc:NotifyIcon>
<uc:RightCardControl x:Name="RightCard" Grid.Row="1" Grid.Column="1"/>
<StackPanel hc:Growl.GrowlParent="True" VerticalAlignment="Top" Margin="0,10,10,0"/> <StackPanel hc:Growl.GrowlParent="True" VerticalAlignment="Top" Margin="0,10,10,0"/>
</Grid> </Grid>
</Border> </Border>

View File

@@ -1,6 +1,5 @@
using GeekDesk.Constant; using GeekDesk.Constant;
using GeekDesk.Control.UserControls.Config; using GeekDesk.Control.UserControls.Config;
using GeekDesk.Control.UserControls.PannelCard;
using GeekDesk.Control.Windows; using GeekDesk.Control.Windows;
using GeekDesk.Interface; using GeekDesk.Interface;
using GeekDesk.MyThread; using GeekDesk.MyThread;
@@ -719,24 +718,29 @@ namespace GeekDesk
/// <param name="e"></param> /// <param name="e"></param>
private void ColorPicker(object sender, RoutedEventArgs e) private void ColorPicker(object sender, RoutedEventArgs e)
{ {
TaskbarContextMenu.IsOpen = false; TaskbarContextMenu.Visibility = Visibility.Collapsed;
App.DoEvents();
GlobalColorPickerWindow.CreateNoShow(); GlobalColorPickerWindow.CreateNoShow();
} }
/// <summary>
/// 防止点击拾色器后无法显示菜单的问题
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void BarIcon_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
{
TaskbarContextMenu.Visibility = Visibility.Visible;
}
private void Window_GotFocus(object sender, RoutedEventArgs e) private void Window_GotFocus(object sender, RoutedEventArgs e)
{ {
if (!LeftCard.IS_EDIT) Keyboard.Focus(SearchBox);
{
//if判断是为了能够使修改菜单时 菜单能够获得焦点
Keyboard.Focus(SearchBox);
}
} }
private void AppWindow_Deactivated(object sender, EventArgs e) private void AppWindow_Deactivated(object sender, EventArgs e)
{ {
AppWindowLostFocus(); AppWindowLostFocus();
} }
} }
} }

View File

@@ -49,5 +49,5 @@ using System.Windows;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示: //通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.4.1.6")] [assembly: AssemblyVersion("2.4.1.5")]
[assembly: AssemblyFileVersion("2.4.1.6")] [assembly: AssemblyFileVersion("2.4.1.5")]

View File

@@ -1,46 +1,77 @@
# GeekDesk 极客桌面 # GeekDesk 极客桌面
小巧、**美观**的桌面快速启动管理工具 小巧、**美观**的桌面快速启动管理工具
谈一谈做GeekDesk的原因: ———— 大风, 雨夜...
「你来了」
「我来了」
目前的市场上也有一部分桌面图标管理工具, 但是**界面好点的收费**, **免费的界面差** 「你究竟想干什么!」
**windows11**都来了, 难道还要用界面停留在**win7时代**的软件吗 「我想做一款软件, 这个软件要Cool」
所以就萌生了做这款软件的想法, **免费 / 美观 / 高度定制化** 是从GeekDesk诞生开始就有的需求和方向, 未来也会向着这些方向发展
目前GeekDesk只有一个人在开发, 大家如果有好的建议也可以提Issue
另外如果你喜欢 GeekDesk的话, 或许可以为作者购买防脱洗发水
<img src="https://z3.ax1x.com/2021/07/20/WYdfmR.jpg" alt="WYdfmR.jpg" border="0" width="400px"/>
## 开发框架
- wpf
- .net 4.7.2
- [HandyControl](https://github.com/HandyOrg/HandyControl)
## 全局热键 鼠标跟随 快速启动 随时随地 「什么软件?」
- 支持自定义热键 「从最常用的桌面开始吧」
- 支持鼠标跟随
<img src="https://z3.ax1x.com/2021/07/19/WJt4hQ.gif" alt="WJt4hQ.gif" border="0" width="800px"/> 「哼!现在的软件多入牛毛, 会差你一个吗」
「我不知道, 但是我想做」
「你以为凭你一个人的力量能在这大海里掀起什么波浪吗」
「但只要我想就够了, 这是我的梦想!」
「梦想? 可笑, 这世界哪有什么梦想. 不过是一日三餐, 车子和房!」
「我想...就够了...」
「...」
———— 雨停, 狂风仍在呼啸...
<img src="https://s4.ax1x.com/2021/12/15/TSrwfU.png" a border="0" width="800px"/>
**免费 / 美观 / 高度定制化** 是从GeekDesk诞生开始就有的需求和方向, 未来也会向着这些方向发展
目前GeekDesk只有一个人在开发所以想法有限, 大家如果有好的建议也可以提Issue
另外如果你喜欢 GeekDesk的话, 或许可以为作者购买防脱洗发水
当然, 点个**Star**也是对作者的激励哦~ 😊😊😊
### GitHub
[https://github.com/Demo-Liu/GeekDesk](https://github.com/Demo-Liu/GeekDesk)
### 码云
[https://gitee.com/demo_liu/GeekDesk](https://gitee.com/demo_liu/GeekDesk)
<img src="https://z3.ax1x.com/2021/07/20/WYdfmR.jpg" alt="WYdfmR.jpg" border="0" width="400px"/>
## 全局热键 一键呼出 鼠标跟随
- 自定义热键 设置并使用自己习惯的快捷键
- 一键呼出 使用鼠标中键呼出
- 鼠标跟随 自动追随鼠标位置
<img src="https://s4.ax1x.com/2021/12/15/TSlg8f.gif" alt="WJt4hQ.gif" border="0" width="800px"/>
## 自定义壁纸 ## 自定义壁纸
- 随意选择自己喜欢的壁纸 - 随意选择自己喜欢的壁纸
<img src="https://s4.ax1x.com/2021/12/15/TSNx4H.gif" alt="WJt4hQ.gif" border="0" width="800px"/>
[![WJlcIs.md.jpg](https://z3.ax1x.com/2021/07/19/WJlcIs.md.jpg)](https://imgtu.com/i/WJlcIs)
## 毛玻璃等界面效果 ## 毛玻璃等界面效果
- 背景图片毛玻璃效果 - 背景图片毛玻璃效果
- 界面透明度 - 界面透明度
- 界面圆角 - 界面圆角
<img src="https://z3.ax1x.com/2021/07/19/WGOYSU.gif" alt="WGOYSU.gif" border="0" width="800px"/> <img src="https://s4.ax1x.com/2021/12/15/TSabTO.gif" alt="WGOYSU.gif" border="0" width="800px"/>
## 自定义菜单图标 ## 自定义菜单图标
- 80多个系统图标可供选择 - 80多个系统图标可供选择
- 另支持在线导入阿里巴巴icon图标 - 另支持在线导入阿里巴巴icon图标
- 篇幅原因,公众号内回复 **自定义图标** 可以查看教程 - ~~篇幅原因,公众号内回复 **自定义图标** 可以查看教程~~ 现在软件内已经贴上教程链接啦 也欢迎大家关注我的公众号:blush:
<img src="https://z3.ax1x.com/2021/07/19/WJ3fDU.png" alt="WJ3fDU.png" border="0" width="450px"/> <img src="https://s4.ax1x.com/2021/12/15/TSd1NF.gif" border="0" width="800px"/>
## 定时提醒 永不忘记 ## 定时提醒 永不忘记
<img src="https://z3.ax1x.com/2021/07/19/WJU6df.gif" alt="WJU6df.gif" border="0" width="800px"/> - 快捷键快速新建待办事项
<img src="https://s4.ax1x.com/2021/12/15/TSDCvj.gif" alt="WJU6df.gif" border="0" width="800px"/>
## LICENSE ## 开发框架
- 这是个人开发的程序,任何人可任意修改和免费使用(未做较大功能性改动不允许修改赞赏码,重新修改发布需注明出处) - wpf
- 商用需联系作者 - .net 4.7.2
- [HandyControl](https://github.com/HandyOrg/HandyControl)
## Stargazers over time
[![Stargazers over time](https://starchart.cc/Demo-Liu/GeekDesk.svg)](https://starchart.cc/Demo-Liu/GeekDesk)

View File

@@ -1,9 +1,9 @@
{ {
"title": "GeekDesk版本更新", "title": "GeekDesk版本更新",
"subTitle": "V2.4.16", "subTitle": "V2.4.15",
"msgTitle": "本次更新内容如下", "msgTitle": "本次更新内容如下",
"msg": "['兄弟萌求Star, 求Star, 由于功能越来越多, 之后的更新我会测试一周再发布, 尽量做到没有BUG, 见谅', '这个版本没有功能性改变, 主要是为了修复上个版本的bug', '修复无法修改菜单名称的问题', '修复通过任务栏图标打开拾色器, 图标菜单消失问题']", "msg": "['PS:又一次的更新, 虽然还有很多需求没有完成, 但仍然耗费了我大量的精力, 没有点Star的兄弟萌, 求个免费Star(GitHub国内某些用户可能进不去), 再给我一点更新的动力!','增加纯色/渐变色背景','增加/优化拾色器功能','增加主面板Logo开关','优化待办任务,现在待办任务快捷键不再是新建待办窗口','增加鼠标滚轮切换菜单功能(需要鼠标指针在菜单栏)','优化搜索功能,增加 快捷键搜索/按键即搜 可选操作','优化贴边隐藏动画, 纵享丝滑了属于是兄弟萌', '其它已知问题修复']",
"githubUrl": "https://github.com/BookerLiu/GeekDesk/releases", "githubUrl": "https://github.com/Demo-Liu/GeekDesk/releases",
"giteeUrl": "https://gitee.com/BookerLiu/GeekDesk/releases", "giteeUrl": "https://gitee.com/BookerLiu/GeekDesk/releases",
"version": "2.4.16" "version": "2.4.15"
} }