mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
X.A.TreeSelect: Deprecate tsDefaultConfig
Replace with Data.Default.def, as already happened a while ago (in 0f1b6fb7726fc54b0ef318143ab2ffc43faed8fa) in all other modules.
This commit is contained in:
parent
e83081b6ef
commit
227a3e0aa5
@ -40,6 +40,7 @@ module XMonad.Actions.TreeSelect
|
||||
|
||||
, TSConfig(..)
|
||||
, tsDefaultConfig
|
||||
, def
|
||||
|
||||
-- * Navigation
|
||||
-- $navigation
|
||||
@ -113,7 +114,7 @@ import Graphics.X11.Xrender
|
||||
--
|
||||
-- Optionally, if you add 'workspaceHistoryHook' to your 'logHook' you can use the \'o\' and \'i\' keys to select from previously-visited workspaces
|
||||
--
|
||||
-- > xmonad $ defaultConfig { ...
|
||||
-- > xmonad $ def { ...
|
||||
-- > , workspaces = toWorkspaces myWorkspaces
|
||||
-- > , logHook = workspaceHistoryHook
|
||||
-- > }
|
||||
@ -131,9 +132,9 @@ import Graphics.X11.Xrender
|
||||
-- $config
|
||||
-- The selection menu is very configurable, you can change the font, all colors and the sizes of the boxes.
|
||||
--
|
||||
-- The default config defined as 'tsDefaultConfig'
|
||||
-- The default config defined as 'def'
|
||||
--
|
||||
-- > tsDefaultConfig = TSConfig { ts_hidechildren = True
|
||||
-- > def = TSConfig { ts_hidechildren = True
|
||||
-- > , ts_background = 0xc0c0c0c0
|
||||
-- > , ts_font = "xft:Sans-16"
|
||||
-- > , ts_node = (0xff000000, 0xff50d0db)
|
||||
@ -258,6 +259,7 @@ defaultNavigation = M.fromList
|
||||
-- Using nice alternating blue nodes
|
||||
tsDefaultConfig :: TSConfig a
|
||||
tsDefaultConfig = def
|
||||
{-# DEPRECATED tsDefaultConfig "Use def (from Data.Default, and re-exported by XMonad.Actions.TreeSelect) instead." #-}
|
||||
|
||||
-- | Tree Node With a name and extra text
|
||||
data TSNode a = TSNode { tsn_name :: String
|
||||
|
Loading…
x
Reference in New Issue
Block a user