Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: automatically expand collapse when mouse hovers on the menu bar #138

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion Hidden Bar.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
/* Begin PBXBuildFile section */
00117C4426600671005E517C /* Assets.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00117C4326600671005E517C /* Assets.swift */; };
00137CDF24A63DB1004AC855 /* Notification.Name+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00137CDE24A63DB1004AC855 /* Notification.Name+Extension.swift */; };
0095D59A2664E5EE00D4E607 /* EventMoniter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0095D5992664E5EE00D4E607 /* EventMoniter.swift */; };
0095D59C2664E8C900D4E607 /* MouseOverDetector.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0095D59B2664E8C900D4E607 /* MouseOverDetector.swift */; };
0095D59E2664EDB000D4E607 /* WindowInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0095D59D2664EDB000D4E607 /* WindowInfo.swift */; };
0095D5A02664F7F800D4E607 /* CGPoint+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0095D59F2664F7F800D4E607 /* CGPoint+Extension.swift */; };
0842CDFB23A9FDD000D14BD4 /* GlobalKeybindingPreferences.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0842CDFA23A9FDD000D14BD4 /* GlobalKeybindingPreferences.swift */; };
08A5F85A23AA007A00981CA5 /* PreferencesViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08A5F85923AA007A00981CA5 /* PreferencesViewController.swift */; };
08A5F85C23AA013100981CA5 /* SelectedSecond.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08A5F85B23AA013100981CA5 /* SelectedSecond.swift */; };
Expand Down Expand Up @@ -59,6 +63,10 @@
/* Begin PBXFileReference section */
00117C4326600671005E517C /* Assets.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Assets.swift; sourceTree = "<group>"; };
00137CDE24A63DB1004AC855 /* Notification.Name+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Notification.Name+Extension.swift"; sourceTree = "<group>"; };
0095D5992664E5EE00D4E607 /* EventMoniter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EventMoniter.swift; sourceTree = "<group>"; };
0095D59B2664E8C900D4E607 /* MouseOverDetector.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MouseOverDetector.swift; sourceTree = "<group>"; };
0095D59D2664EDB000D4E607 /* WindowInfo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WindowInfo.swift; sourceTree = "<group>"; };
0095D59F2664F7F800D4E607 /* CGPoint+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "CGPoint+Extension.swift"; sourceTree = "<group>"; };
0842CDFA23A9FDD000D14BD4 /* GlobalKeybindingPreferences.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GlobalKeybindingPreferences.swift; sourceTree = "<group>"; };
08A5F85923AA007A00981CA5 /* PreferencesViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PreferencesViewController.swift; sourceTree = "<group>"; };
08A5F85B23AA013100981CA5 /* SelectedSecond.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SelectedSecond.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -141,6 +149,8 @@
children = (
0842CDFA23A9FDD000D14BD4 /* GlobalKeybindingPreferences.swift */,
08A5F85B23AA013100981CA5 /* SelectedSecond.swift */,
0095D5992664E5EE00D4E607 /* EventMoniter.swift */,
0095D59D2664EDB000D4E607 /* WindowInfo.swift */,
);
path = Models;
sourceTree = "<group>";
Expand All @@ -159,6 +169,7 @@
isa = PBXGroup;
children = (
92C97B9022018C1F0007559C /* StatusBarController.swift */,
0095D59B2664E8C900D4E607 /* MouseOverDetector.swift */,
);
path = StatusBar;
sourceTree = "<group>";
Expand All @@ -182,6 +193,7 @@
00137CDE24A63DB1004AC855 /* Notification.Name+Extension.swift */,
55F3F1182608923B0054B881 /* Date+Extension.swift */,
55F3F11C2608925A0054B881 /* StackView+Extension.swift */,
0095D59F2664F7F800D4E607 /* CGPoint+Extension.swift */,
);
path = Extensions;
sourceTree = "<group>";
Expand Down Expand Up @@ -322,7 +334,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1010;
LastUpgradeCheck = 1130;
LastUpgradeCheck = 1250;
ORGANIZATIONNAME = "Dwarves Foundation";
TargetAttributes = {
929113F021F9D04100173149 = {
Expand Down Expand Up @@ -398,23 +410,27 @@
files = (
92C97B8F220147FE0007559C /* Constant.swift in Sources */,
08C20FE023AB44E60035D978 /* Bundle+Extension.swift in Sources */,
0095D59E2664EDB000D4E607 /* WindowInfo.swift in Sources */,
08A5F85C23AA013100981CA5 /* SelectedSecond.swift in Sources */,
08A5F86123AA085B00981CA5 /* Preferences.swift in Sources */,
92C97B9122018C1F0007559C /* StatusBarController.swift in Sources */,
55F3F1192608923B0054B881 /* Date+Extension.swift in Sources */,
0095D59C2664E8C900D4E607 /* MouseOverDetector.swift in Sources */,
92D2122221FEE06600C92FF4 /* LauncherApplication.app in Sources */,
08B9F32C2411883300AA0551 /* NSWindow+Extension.swift in Sources */,
929113F521F9D04100173149 /* AppDelegate.swift in Sources */,
08C20FDE23AABDD10035D978 /* HyperlinkTextField.swift in Sources */,
92C97B88220032ED0007559C /* Util.swift in Sources */,
967F4B2524169BC800F18D3C /* String+Extension.swift in Sources */,
00117C4426600671005E517C /* Assets.swift in Sources */,
0095D59A2664E5EE00D4E607 /* EventMoniter.swift in Sources */,
08A5F85A23AA007A00981CA5 /* PreferencesViewController.swift in Sources */,
3CF14C82221FA49D0083D42B /* PreferencesWindowController.swift in Sources */,
92C97B8B220049D20007559C /* NSBarButtonItem+Extension.swift in Sources */,
92C97B8D220058740007559C /* NSView+Extension.swift in Sources */,
0842CDFB23A9FDD000D14BD4 /* GlobalKeybindingPreferences.swift in Sources */,
55F3F11D2608925A0054B881 /* StackView+Extension.swift in Sources */,
0095D5A02664F7F800D4E607 /* CGPoint+Extension.swift in Sources */,
08C20FE223AB452C0035D978 /* AboutViewController.swift in Sources */,
00137CDF24A63DB1004AC855 /* Notification.Name+Extension.swift in Sources */,
08A5F86423AA09F300981CA5 /* UserDefault+Extension.swift in Sources */,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1130"
LastUpgradeVersion = "1250"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1130"
LastUpgradeVersion = "1250"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
3 changes: 2 additions & 1 deletion hidden/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class AppDelegate: NSObject, NSApplicationDelegate{
UserDefaults.standard.register(defaults: [
UserDefaults.Key.isAutoStart: false,
UserDefaults.Key.isShowPreference: true,
UserDefaults.Key.autoExpandCollapse: false,
UserDefaults.Key.isAutoHide: true,
UserDefaults.Key.numberOfSecondForAutoHide: 10.0,
UserDefaults.Key.areSeparatorsHidden: false,
Expand All @@ -70,7 +71,7 @@ class AppDelegate: NSObject, NSApplicationDelegate{
// Languages like Arabic uses right to left (RTL) writing direction,
// so some behavier of the app needs to be changed in these cases

Constant.isUsingLTRLanguage = (NSApplication.shared.userInterfaceLayoutDirection == .leftToRight)
Util.SharedValues.isUsingLTRLanguage = (NSApplication.shared.userInterfaceLayoutDirection == .leftToRight)
}

}
Loading