diff --git a/assets/theme.css b/assets/theme.css index b1f2bf3..c3fb595 100644 --- a/assets/theme.css +++ b/assets/theme.css @@ -348,6 +348,10 @@ To specify it in CSS, set the box-shadow of the contents node." padding-left: 10px; } +.metabrush .listViewPane { + font-size: 12px; +} + .metabrush .listViewPane :selected { background-color: unset; font-weight: bold; @@ -454,7 +458,7 @@ To specify it in CSS, set the box-shadow of the contents node." /* File bar */ .metabrush .fileBar { min-height: 24px; - font-size: 12px; + font-size: 11px; margin-top: 2px; } @@ -462,6 +466,7 @@ To specify it in CSS, set the box-shadow of the contents node." border-top: 2px solid @bg; } + .metabrush .fileBarTab:hover { border-color: @active; } @@ -469,6 +474,7 @@ To specify it in CSS, set the box-shadow of the contents node." .metabrush .activeTab { border-color: @base; background-color: @active; + /* font-weight: bold; */ } .metabrush .activeTab:hover { @@ -476,7 +482,8 @@ To specify it in CSS, set the box-shadow of the contents node." } .metabrush .fileBarTab label { - margin-left: 4px; + margin-left: 10px; + margin-top: 2px; color: @plain; } @@ -598,7 +605,7 @@ To specify it in CSS, set the box-shadow of the contents node." .metabrush :selected .layer-item, .metabrush :selected .brush-item { color: black; background-color: @contrast; - border: 0px solid @contrast; + border-color: @contrast; } /* Add "drop here" areas when a drag has been initiated */ @@ -626,13 +633,11 @@ To specify it in CSS, set the box-shadow of the contents node." } /* Style when dragging brush over an item */ -.dragging-brush .drag-top.layer-item, .dragging-brush .drag-bot.layer-item { - border-top: 2px solid @brushStroke; - border-bottom: 2px solid @brushStroke; - border-left: 0px; - border-right: 0px; - margin-top: -2px; - margin-bottom: -2px; +.dragging-brush .drag-over.layer-item { + box-shadow: unset; + box-shadow: + inset 8px -8px 2px -6px @brushStroke, + inset -8px 8px 2px -6px @brushStroke; background-color: @brushStroke; } diff --git a/src/app/MetaBrush/GTK/Util.hs b/src/app/MetaBrush/GTK/Util.hs index a28237b..66f0861 100644 --- a/src/app/MetaBrush/GTK/Util.hs +++ b/src/app/MetaBrush/GTK/Util.hs @@ -99,6 +99,7 @@ editableLabelNew txt = do -- Make the label not editable to start with, -- because we want it to be editable on double-clicks not single clicks. GTK.editableSetEditable label False + widgetAddClasses label [ "monospace" ] return label where diff --git a/src/app/MetaBrush/UI/BrushList.hs b/src/app/MetaBrush/UI/BrushList.hs index c37bf19..0fcdcfb 100644 --- a/src/app/MetaBrush/UI/BrushList.hs +++ b/src/app/MetaBrush/UI/BrushList.hs @@ -52,6 +52,8 @@ import MetaBrush.Brush ( SomeBrush ) import qualified MetaBrush.Asset.Brushes as Brushes ( brushes ) +import MetaBrush.GTK.Util + ( widgetAddClasses ) -------------------------------------------------------------------------------- @@ -120,7 +122,7 @@ newBrushView rootWindow vars mkDND_data = mdo brushBox <- GTK.boxNew GTK.OrientationHorizontal 10 GTK.listItemSetChild listItem ( Just brushBox ) - GTK.widgetAddCssClass brushBox "brush-item" + widgetAddClasses brushBox [ "brush-item", "monospace" ] brushLabel <- GTK.labelNew ( Nothing @Text ) GTK.boxAppend brushBox brushLabel