The design of urban green spaces in gardens not only fosters a diverse urban landscape but also significantly enhances the ecological quality of urban environments, offering the public increased opportunities for leisure and recreation. This article commences with an exploration of spatial design strategies for landscape greening, examining urban landscape features and fundamental design principles. It subsequently devises a plan for urban landscape gardens by evaluating three key aspects: the extent of landscape coverage, the division of a diversified landscape structure, and the dense arrangement of vegetation. To assess the habitat quality within urban landscapes, the InVEST model was employed, complemented by the use of the least cost path method for simulating urban garden landscapes. Additionally, this study integrates connectivity, control value, and integration degree from spatial syntax to quantitatively evaluate the effectiveness of urban landscape designs. Over the period from 2002 to 2022, the habitat quality of urban landscapes exhibited a consistent decline, registering a total decrease of 4.49 percentage points. Moreover, the control values across various urban landscapes were consistently 4.49 percentage points lower in both the visible and feasible layers, with a marginal discrepancy of no more than 0.22 between these layers. The urban landscape planning approach introduced herein effectively maintains the regional spatial optimization ratio within 1.45. By focusing on landscape design, urban landscapes are enhanced in terms of formability and space utilization, more effectively embodying the concept of urban ecological civilization.