Skip to content

Commit

Permalink
added icons and names for the test, benchmark, and documents build op…
Browse files Browse the repository at this point in the history
…tion buttons on the menu. Also adjusted the size of the icons to make them easier to see.
  • Loading branch information
Threestrikes committed Feb 10, 2017
1 parent a19ae2c commit 196e19a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions leksah.cabal
Expand Up @@ -92,6 +92,9 @@ data-files:
pics/ide_error.png
pics/ide_warning.png
pics/ide_suggestion.png
pics/ide_doc_build.png
pics/ide_bench_build.png
pics/ide_test_build.png
scripts/clean.sh
scripts/stage.sh
osx/bundle.sh
Expand Down
Binary file added pics/ide_bench_build.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pics/ide_doc_build.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pics/ide_test_build.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions src/IDE/Command.hs
Expand Up @@ -495,11 +495,11 @@ mkActions =

,AD "BackgroundBuildToggled" (__ "_Build in the background") (Just (__ "Build in the background and report errors")) (Just "ide_build")
backgroundBuildToggled [] True
,AD "MakeDocsToggled" (__ "Build with _documentation") (Just (__ "Make documentation when building")) (Just "gtk-apply") -- TODO change icon
,AD "MakeDocsToggled" (__ "Build with _documentation") (Just (__ "Make documentation when building")) (Just "ide_doc_build")
makeDocsToggled [] True
,AD "RunUnitTestsToggled" (__ "Run _unit tests when building") (Just (__ "Run unit tests when building")) (Just "gtk-apply") -- TODO change icon
,AD "RunUnitTestsToggled" (__ "Run _unit tests when building") (Just (__ "Run unit tests when building")) (Just "ide_test_build")
runUnitTestsToggled [] True
,AD "RunBenchmarksToggled" (__ "_Run benchmarks when building") (Just (__ "Run benchmarks when building")) (Just "gtk-apply") -- TODO change icon
,AD "RunBenchmarksToggled" (__ "_Run benchmarks when building") (Just (__ "Run benchmarks when building")) (Just "ide_bench_build")
runBenchmarksToggled [] True
,AD "MakeModeToggled" (__ "_MakeMode") (Just (__ "Make dependent packages")) (Just "ide_make")
makeModeToggled [] True
Expand Down Expand Up @@ -603,7 +603,7 @@ getMenuAndToolbars uiManager = do
menu <- uIManagerGetWidget uiManager "/ui/menubar" >>= liftIO . unsafeCastTo MenuBar
toolbar <- uIManagerGetWidget uiManager "/ui/toolbar" >>= liftIO . unsafeCastTo Toolbar
toolbarSetStyle toolbar ToolbarStyleIcons
toolbarSetIconSize toolbar IconSizeSmallToolbar
toolbarSetIconSize toolbar IconSizeLargeToolbar
widgetSetSizeRequest toolbar 700 (-1)
return (accGroup,menu,toolbar)

Expand Down Expand Up @@ -725,7 +725,7 @@ newIcons = catch (do
"ide_debug", "ide_step", "ide_local", "ide_module", "ide_continue", "ide_rebuild_meta",
"ide_empty","ide_source_local", "ide_js", "ide_folder", "ide_source_folder",
"ide_cabal_file", "ide_package", "ide_component", "ide_source_dependency", "ide_error",
"ide_warning", "ide_suggestion", "ide_git" ]
"ide_warning", "ide_suggestion", "ide_git", "ide_test_build", "ide_bench_build", "ide_doc_build" ]
iconFactoryAddDefault iconFactory)
(\(e :: SomeException) -> getDataDir >>= \dataDir -> throwIDE (T.pack $ printf (__ "Can't load icons from %s %s") dataDir (show e)))
where
Expand Down

0 comments on commit 196e19a

Please sign in to comment.