From 8c1c48c87ae1685710da0dd2b6e85f558b5cdef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20=C5=BBelazko?= Date: Sun, 18 Dec 2022 23:50:26 +0100 Subject: feat: add dock icon magnification settings --- modules/system/defaults/dock.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'modules/system') diff --git a/modules/system/defaults/dock.nix b/modules/system/defaults/dock.nix index 34fc857..5a971b5 100644 --- a/modules/system/defaults/dock.nix +++ b/modules/system/defaults/dock.nix @@ -163,6 +163,23 @@ in { ''; }; + system.defaults.dock.magnification = mkOption { + type = types.nullOr types.bool; + default = false; + description = lib.mdDoc '' + Magnify icon on hover. The default is false. + ''; + }; + + system.defaults.dock.largesize = mkOption { + type = types.nullOr types.int; + default = null; + description = lib.mdDoc '' + Hover maginified icon size. The default is null. + ''; + }; + + system.defaults.dock.wvous-tl-corner = mkOption { type = types.nullOr types.ints.positive; default = null; -- cgit v1.2.3 From 640331dfba943068a20f7519fff619e7e9f375ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20=C5=BBelazko?= Date: Mon, 24 Jul 2023 21:16:04 +0200 Subject: docs: add magnification values range --- modules/system/defaults/dock.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/system') diff --git a/modules/system/defaults/dock.nix b/modules/system/defaults/dock.nix index 5a971b5..5c6b9fe 100644 --- a/modules/system/defaults/dock.nix +++ b/modules/system/defaults/dock.nix @@ -167,7 +167,7 @@ in { type = types.nullOr types.bool; default = false; description = lib.mdDoc '' - Magnify icon on hover. The default is false. + Magnify icon on hover. The default is false. ''; }; @@ -175,7 +175,8 @@ in { type = types.nullOr types.int; default = null; description = lib.mdDoc '' - Hover maginified icon size. The default is null. + Hover maginified icon size. The default is null. + Valid values can range from 16 up to 128. ''; }; -- cgit v1.2.3 From 7ff10017ed1636d23a1ad838611fe7339c9a499f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20=C5=BBelazko?= Date: Tue, 25 Jul 2023 18:35:19 +0200 Subject: chore: apply CR suggestions --- modules/system/defaults/dock.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'modules/system') diff --git a/modules/system/defaults/dock.nix b/modules/system/defaults/dock.nix index 5c6b9fe..7fda0da 100644 --- a/modules/system/defaults/dock.nix +++ b/modules/system/defaults/dock.nix @@ -165,18 +165,17 @@ in { system.defaults.dock.magnification = mkOption { type = types.nullOr types.bool; - default = false; + default = null; description = lib.mdDoc '' Magnify icon on hover. The default is false. ''; }; system.defaults.dock.largesize = mkOption { - type = types.nullOr types.int; + type = types.nullOr (types.ints.between 16 128); default = null; description = lib.mdDoc '' - Hover maginified icon size. The default is null. - Valid values can range from 16 up to 128. + Magnified icon size on hover. The default is 16. ''; }; -- cgit v1.2.3