Skip to content

Commit

Permalink
rel 2024.1
Browse files Browse the repository at this point in the history
  • Loading branch information
FredHappyface committed Jan 20, 2024
1 parent f71d371 commit 75e12eb
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 34 deletions.
61 changes: 31 additions & 30 deletions documentation/reference/getostheme/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Getostheme

[Getostheme Index](../README.md#getostheme-index) /
Getostheme
[Getostheme Index](../README.md#getostheme-index) / Getostheme

> Auto-generated documentation for [getostheme](../../../getostheme/__init__.py) module.
Expand All @@ -16,25 +15,27 @@ Getostheme

## cli

[Show source in __init__.py:153](../../../getostheme/__init__.py#L153)
[Show source in __init__.py:161](../../../getostheme/__init__.py#L161)

CLI entry point
CLI entry point.

#### Signature

```python
def cli(): ...
def cli() -> None: ...
```



## isDarkMode

[Show source in __init__.py:145](../../../getostheme/__init__.py#L145)
[Show source in __init__.py:151](../../../getostheme/__init__.py#L151)

#### Returns
Is the OS in dark mode?.

- `bool` - OS is in dark mode
Returns
-------
bool: OS is in dark mode

#### Signature

Expand All @@ -46,13 +47,13 @@ def isDarkMode() -> bool: ...

## isLightMode

[Show source in __init__.py:130](../../../getostheme/__init__.py#L130)
[Show source in __init__.py:135](../../../getostheme/__init__.py#L135)

Call isLightMode_OS
Call isLightMode_OS.

#### Returns

- `bool` - OS is in light mode
Returns
-------
bool: OS is in light mode

#### Signature

Expand All @@ -64,13 +65,13 @@ def isLightMode() -> bool: ...

## isLightMode_Linux

[Show source in __init__.py:107](../../../getostheme/__init__.py#L107)

For Linux OS MIT FredHappyface
[Show source in __init__.py:111](../../../getostheme/__init__.py#L111)

#### Returns
For Linux OS MIT FredHappyface.

- `bool` - Linux is in light mode
Returns
-------
bool: Linux is in light mode

#### Signature

Expand All @@ -85,15 +86,15 @@ def isLightMode_Linux() -> bool: ...
[Show source in __init__.py:10](../../../getostheme/__init__.py#L10)

For MacOS BSD-3-Clause albertosottile
(https://github.com/albertosottile/darkdetect)

#### Raises
(https://github.com/albertosottile/darkdetect).

- `OSError` - Cannot load objc
Raises
------
OSError: Cannot load objc

#### Returns

- `bool` - Windows is in light mode
Returns
-------
bool: Windows is in light mode

#### Signature

Expand All @@ -105,14 +106,14 @@ def isLightMode_Mac() -> bool: ...

## isLightMode_Windows

[Show source in __init__.py:92](../../../getostheme/__init__.py#L92)
[Show source in __init__.py:95](../../../getostheme/__init__.py#L95)

For Windows OS MIT clxmente
(https://github.com/clxmente/Windows-Dark-Mode-Check)

#### Returns
(https://github.com/clxmente/Windows-Dark-Mode-Check).

- `bool` - Windows is in light mode
Returns
-------
bool: Windows is in light mode

#### Signature

Expand Down
4 changes: 1 addition & 3 deletions documentation/reference/getostheme/module.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Module

[Getostheme Index](../README.md#getostheme-index) /
[Getostheme](./index.md#getostheme) /
Module
[Getostheme Index](../README.md#getostheme-index) / [Getostheme](./index.md#getostheme) / Module

> Auto-generated documentation for [getostheme.__main__](../../../getostheme/__main__.py) module.
- [Module](#module)
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "getostheme"
version = "2021"
version = "2024.0.1"
license = "mit"
description = "Use this module to get the OS theme (dark/light)"
authors = ["FredHappyface"]
Expand All @@ -27,6 +27,9 @@ getostheme = 'getostheme:cli'
python = "^3.8"
PyQt5 = { version = "<6,>=5.15.10", optional = true }

[tool.poetry.extras]
qt = ["PyQt5"]

[tool.poetry.group.dev.dependencies]
pytest = "^7.4.4"
handsdown = "^2.1.0"
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit 75e12eb

Please sign in to comment.