Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
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
4 changes: 4 additions & 0 deletions src/Facades/MenuBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
* @method static void show()
* @method static void hide()
* @method static void label(string $label)
* @method static void tooltip(string $label)
* @method static void icon(string $icon)
* @method static void resize(int $width, int $height)
* @method static void contextMenu(Menu $contextMenu)
*/
class MenuBar extends Facade
Expand All @@ -19,3 +22,4 @@ protected static function getFacadeAccessor()
return \Native\Laravel\MenuBar\MenuBarManager::class;
}
}

8 changes: 8 additions & 0 deletions src/MenuBar/MenuBarManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ public function icon(string $icon)
]);
}

public function resize(int $width, int $height)
{
$this->client->post('menu-bar/resize', [
'width' => $width,
'height' => $height,
]);
}

public function contextMenu(Menu $contextMenu)
{
$this->client->post('menu-bar/context-menu', [
Expand Down