                                            (point)))
             (insert (make-string
                      (max 0 (- (/ (window-height (get-buffer-window)) 2)
-                               (truncate (/ (+ (count-lines (point-min) (point-max))
-                                               +doom-dashboard--hoffset)
-                                            2))))
-                     ?\n)
-                    "\n")))))))
+                               (round (/ (+ (count-lines (point-min) (point-max))
+                                            (car +doom-dashboard-banner-padding))
+                                         2))))
+                     ?\n))))))))
 
 (defun +doom-dashboard|detect-project (&rest _)
   "Check for a `last-project-root' parameter in the perspective, and set the

            "=='    _-'                         E M A C S                          \\/   `=="
            "\\   _-'                                                                `-_   /"
            " `''                                                                      ``'"))
    ;; TODO Add Doom logo
    ;; (when (and +doom-dashboard-banner-file (display-graphic-p))
    ;;   (let* ((image (create-image (expand-file-name +doom-dashboard-banner-file
    ;;                                                 +doom-dashboard-banner-dir)
    ;;                               'png nil))
    ;;          (size (image-size image))
    ;;          (margin (+ 1 (/ (- +doom-dashboard--width (car size)) 2))))
    ;;     (setq +doom-dashboard--hoffset (- (cdr size) 2))
    ;;     (add-text-properties
    ;;      point (point) `(display ,image rear-nonsticky (display)))
    ;;     (when (> margin 0)
    ;;       (save-excursion
    ;;         (goto-char point)
    ;;         (insert (make-string (truncate margin) ? )))))
    ;;   (insert "\n\n\n\n"))
    ))

(defun doom-dashboard-widget-loaded ()
  (insert

          (unless (eq major-mode '+doom-dashboard-mode)
            (+doom-dashboard-mode))
          (erase-buffer)
          (run-hooks '+doom-dashboard-functions)))
      (+doom-dashboard|resize)
      (+doom-dashboard|detect-project)
