-
Notifications
You must be signed in to change notification settings - Fork 22
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
32 changed files
with
469 additions
and
197 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,18 +1,10 @@ | ||
name: Feature Request | ||
description: I'd like to request additional functionality | ||
description: Suggest a new feature or improvement | ||
labels: ["enhancement"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Before opening a new issue, take a moment to search through the current open ones. | ||
--- | ||
- type: textarea | ||
id: desc | ||
attributes: | ||
label: Description | ||
description: "Describe your idea" | ||
label: Feature Description | ||
description: "Clearly describe the feature or improvement you'd like to see" | ||
validations: | ||
required: 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 |
---|---|---|
@@ -1,18 +1,10 @@ | ||
name: Documentation | ||
description: Improvements or additions to documentation | ||
description: Suggest improvements or additions to the documentation | ||
labels: ["documentation"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Before opening a new issue, take a moment to search through the current open ones. | ||
--- | ||
- type: textarea | ||
id: desc | ||
attributes: | ||
label: Description | ||
description: "Describe your idea" | ||
description: "Clearly describe your suggestion for improving the documentation" | ||
validations: | ||
required: 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
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 @@ | ||
name: Nix/NixOS | ||
description: Related to the Nix package manager or NixOS | ||
labels: ["nix"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Please note that I (linkfrg) don't maintain the Nix flake for Ignis, any help or pull request would be highly appreciated. | ||
--- | ||
- type: textarea | ||
attributes: | ||
label: Description | ||
description: "Describe the issue" | ||
validations: | ||
required: true |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
name: Other | ||
description: Something else? if the options above do not suit | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: Description | ||
description: "Provide a description of your issue" | ||
validations: | ||
required: 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
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,61 @@ | ||
Code Snippets | ||
============== | ||
|
||
This page provides useful code snippets to help you implement additional functionality. | ||
|
||
Clicking outside of a window | ||
---------------------------- | ||
|
||
A common use case is to close a window. | ||
|
||
.. code-block:: python | ||
Widget.Window( | ||
namespace="my-window", | ||
anchor=["left", "right", "top", "bottom"], # to make a window fullscreen | ||
child=Widget.Overlay( | ||
child=Widget.Button( | ||
vexpand=True, | ||
hexpand=True, | ||
can_focus=False, | ||
on_click=lambda x: CALLBACK, # e.g., app.close_window("my-window") | ||
), | ||
overlays=[ACTUAL_CONTENT], | ||
), | ||
) | ||
Replace ``ACTUAL_CONTENT`` with the actual widgets you want to put in the window. | ||
|
||
.. warning:: | ||
If ``ACTUAL_CONTENT`` fills all of the screen, | ||
set ``valign`` and ``halign`` with values other than ``fill`` (e.g., ``center``). | ||
|
||
|
||
Listen for key events | ||
---------------------- | ||
|
||
Currently Ignis doesn't have a convenient API for this. | ||
But you can always use GTK directly. | ||
|
||
Use :class:`Gtk.EventControllerKey`: | ||
|
||
.. code-block:: python | ||
from gi.repository import Gtk | ||
def handle_key_press( | ||
event_controller_key: Gtk.EventControllerKey, | ||
keyval: int, | ||
keycode: int, | ||
state: Gdk.ModifierType, | ||
) -> None: | ||
print(keyval) | ||
key_controller = Gtk.EventControllerKey() | ||
WIDGET.add_controller(key_controller) | ||
# Listen for the pressed event | ||
# Gtk.EventControllerKey has other signals, e.g., "key-released" | ||
# Check out PyGObject docs for more info | ||
key_controller.connect("key-pressed", handle_key_press) | ||
Replace ``WIDGET`` with the widget on which you want to listen for key events. |
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,12 @@ | ||
Configurations | ||
================= | ||
|
||
This page contains some configurations that you can use as an example. | ||
|
||
`A simple bar <https://github.com/linkfrg/ignis/tree/main/examples/bar>`_ | ||
--------------------------------------------------------------------------------- | ||
.. image:: https://github.com/linkfrg/ignis/blob/main/examples/bar/simple-bar.png?raw=true | ||
|
||
`My own configuration <https://github.com/linkfrg/dotfiles/>`_ | ||
--------------------------------------------------------------------------------- | ||
.. image:: https://github.com/linkfrg/dotfiles/blob/main/assets/1.png?raw=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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
Examples | ||
============= | ||
|
||
`A simple bar <https://github.com/linkfrg/ignis/tree/main/examples/bar>`_ | ||
--------------------------------------------------------------------------------- | ||
.. image:: https://github.com/linkfrg/ignis/blob/main/examples/bar/simple-bar.png?raw=true | ||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
`My own configuration <https://github.com/linkfrg/dotfiles/>`_ | ||
--------------------------------------------------------------------------------- | ||
.. image:: https://github.com/linkfrg/dotfiles/blob/main/assets/1.png?raw=true | ||
configurations | ||
code_snippets |
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
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
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ Get started | |
|
||
installation | ||
first_widgets | ||
using_classes | ||
dynamic_content | ||
styling | ||
cli | ||
|
Oops, something went wrong.