-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from WendellAdriel/theme-style
Theme Style class and Static Analysis fix
- Loading branch information
Showing
6 changed files
with
126 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
* text=auto | ||
|
||
/.art export-ignore | ||
/.github export-ignore | ||
/tests export-ignore | ||
.editorconfig export-ignore | ||
|
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,3 +1,8 @@ | ||
# Minicli Framework | ||
<div align="center"> | ||
<p> | ||
<img src="https://github.com/minicli/framework/raw/main/art/minicli.png" alt="Minicli" width="150"/> | ||
<h1>Minicli Framework</h1> | ||
</p> | ||
</div> | ||
|
||
This repo contains the source code for the Minicli Framework - a great way to extend the core minicli application. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Minicli\Framework\Theme; | ||
|
||
use Minicli\Framework\Theme\Enums\Background; | ||
use Minicli\Framework\Theme\Enums\FontWeight; | ||
use Minicli\Framework\Theme\Enums\Foreground; | ||
|
||
final class ThemeStyle | ||
{ | ||
public function __construct( | ||
public readonly FontWeight|Foreground $foreground, | ||
public readonly ?Background $background = null | ||
) { | ||
} | ||
|
||
public static function make(FontWeight|Foreground $foreground, ?Background $background = null): self | ||
{ | ||
return new self($foreground, $background); | ||
} | ||
} |