hvega-theme 0.2.0.4 → 0.2.0.5
raw patch · 2 files changed
+6/−4 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
+ Graphics.Vega.VegaLite.Theme: [configTitleFontSize] :: Config -> Maybe Double
- Graphics.Vega.VegaLite.Theme: Config :: Maybe Double -> Text -> Text -> Text -> Maybe Double -> Maybe Double -> Maybe Double -> Config
+ Graphics.Vega.VegaLite.Theme: Config :: Maybe Double -> Maybe Double -> Text -> Text -> Text -> Maybe Double -> Maybe Double -> Maybe Double -> Config
Files
hvega-theme.cabal view
@@ -1,5 +1,5 @@ name: hvega-theme-version: 0.2.0.4+version: 0.2.0.5 synopsis: Theme for hvega. description: A professional theme for publication quality figures. homepage: http://github.com/GregorySchwartz/hvega-theme#readme
src/Graphics/Vega/VegaLite/Theme.hs view
@@ -20,6 +20,7 @@ -- Local data Config = Config { configFontSize :: Maybe Double+ , configTitleFontSize :: Maybe Double , configFont :: T.Text , configLabelFont :: T.Text , configAxisColor :: T.Text@@ -30,6 +31,7 @@ defaultConfig :: Config defaultConfig = Config { configFontSize = Nothing+ , configTitleFontSize = Nothing , configFont = "Arial" , configLabelFont = "Arial" , configAxisColor = "#000000"@@ -57,12 +59,12 @@ legendConfig :: Config -> [LegendConfig] legendConfig c = catMaybes [ fmap LeLabelFontSize $ configFontSize c- , fmap LeTitleFontSize $ configFontSize c+ , fmap LeTitleFontSize $ configTitleFontSize c ] titleConfig :: Config -> [TitleConfig] titleConfig c = catMaybes- [ fmap TFontSize $ configFontSize c+ [ fmap TFontSize $ configTitleFontSize c , Just $ TFont $ configFont c , Just $ TColor "#000000" , Just $ TFontWeight Normal@@ -77,6 +79,6 @@ , fmap LabelAngle $ configLabelAngle c , Just $ TickColor $ configAxisColor c , Just $ TitleFont $ configFont c- , fmap TitleFontSize $ configFontSize c+ , fmap TitleFontSize $ configTitleFontSize c , Just $ TitleFontWeight Normal ]